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 ]
66name = " python_v2ray"
@@ -10,11 +10,11 @@ authors = [
1010]
1111description = " A powerful, high-level Python wrapper for managing and testing V2Ray/Xray-core and Hysteria clients."
1212readme = " README.md"
13+ license = " GPL-3.0-only" # The modern, correct SPDX identifier
1314requires-python = " >=3.8"
1415keywords = [" v2ray" , " xray" , " hysteria" , " proxy" , " tester" , " api" , " wrapper" ]
1516classifiers = [
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