Skip to content

Commit ed2a724

Browse files
Add files via upload
1 parent c2d1f90 commit ed2a724

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

pyproject.toml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
requires = ["setuptools>=61.0"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
44

55
[project]
66
name = "python_v2ray"
@@ -10,11 +10,11 @@ authors = [
1010
]
1111
description = "A powerful, high-level Python wrapper for managing and testing V2Ray/Xray-core and Hysteria clients."
1212
readme = "README.md"
13+
license = "GPL-3.0-only" # The modern, correct SPDX identifier
1314
requires-python = ">=3.8"
1415
keywords = ["v2ray", "xray", "hysteria", "proxy", "tester", "api", "wrapper"]
1516
classifiers = [
1617
"Programming Language :: Python :: 3",
17-
# We still need a classifier for PyPI to categorize the license
1818
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
1919
"Operating System :: OS Independent",
2020
"Intended Audience :: Developers",
@@ -32,13 +32,16 @@ dependencies = [
3232
"Homepage" = "https://github.com/arshiacomplus/python_v2ray"
3333
"Bug Tracker" = "https://github.com/arshiacomplus/python_v2ray/issues"
3434

35-
[tool.setuptools]
36-
packages = ["python_v2ray", "python_v2ray.protos.app.stats.command"]
37-
38-
license-files = ["LICENSE"]
35+
[tool.hatch.build.targets.wheel]
36+
packages = ["python_v2ray"]
37+
include = [
38+
"/python_v2ray/vendor",
39+
"/python_v2ray/core_engine"
40+
]
3941

40-
[tool.setuptools.package-data]
41-
python_v2ray = [
42-
"vendor/*",
43-
"core_engine/*",
42+
[tool.hatch.build.targets.sdist]
43+
include = [
44+
"/python_v2ray",
45+
"/LICENSE",
46+
"/README.md",
4447
]

0 commit comments

Comments
 (0)