Skip to content

Commit 482ae1e

Browse files
Add files via upload
1 parent ed2a724 commit 482ae1e

File tree

2 files changed

+40
-46
lines changed

2 files changed

+40
-46
lines changed

pyproject.toml

Lines changed: 2 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,3 @@
11
[build-system]
2-
requires = ["hatchling"]
3-
build-backend = "hatchling.build"
4-
5-
[project]
6-
name = "python_v2ray"
7-
version = "0.1.0"
8-
authors = [
9-
{ name="arshiacomplus", email="arshiacomplus@gmail.com" },
10-
]
11-
description = "A powerful, high-level Python wrapper for managing and testing V2Ray/Xray-core and Hysteria clients."
12-
readme = "README.md"
13-
license = "GPL-3.0-only" # The modern, correct SPDX identifier
14-
requires-python = ">=3.8"
15-
keywords = ["v2ray", "xray", "hysteria", "proxy", "tester", "api", "wrapper"]
16-
classifiers = [
17-
"Programming Language :: Python :: 3",
18-
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
19-
"Operating System :: OS Independent",
20-
"Intended Audience :: Developers",
21-
"Topic :: Internet :: Proxy Servers",
22-
"Topic :: System :: Networking",
23-
]
24-
25-
dependencies = [
26-
"requests",
27-
"grpcio",
28-
"protobuf",
29-
]
30-
31-
[project.urls]
32-
"Homepage" = "https://github.com/arshiacomplus/python_v2ray"
33-
"Bug Tracker" = "https://github.com/arshiacomplus/python_v2ray/issues"
34-
35-
[tool.hatch.build.targets.wheel]
36-
packages = ["python_v2ray"]
37-
include = [
38-
"/python_v2ray/vendor",
39-
"/python_v2ray/core_engine"
40-
]
41-
42-
[tool.hatch.build.targets.sdist]
43-
include = [
44-
"/python_v2ray",
45-
"/LICENSE",
46-
"/README.md",
47-
]
2+
requires = ["setuptools>=61.0"]
3+
build-backend = "setuptools.build_meta"

setup.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import setuptools
2+
3+
with open("README.md", "r", encoding="utf-8") as fh:
4+
long_description = fh.read()
5+
6+
setuptools.setup(
7+
name="python_v2ray",
8+
version="0.1.0",
9+
author="Arshia",
10+
author_email="arshiacomplus@gmail.com",
11+
description="A powerful, high-level Python wrapper for managing and testing V2Ray/Xray-core and Hysteria clients.",
12+
long_description=long_description,
13+
long_description_content_type="text/markdown",
14+
url="https://github.com/arshiacomplus/python_v2ray",
15+
license="GPL-3.0-only",
16+
packages=setuptools.find_packages(),
17+
package_data={
18+
"python_v2ray": [
19+
"vendor/*",
20+
"core_engine/*",
21+
],
22+
},
23+
install_requires=[
24+
"requests",
25+
"grpcio",
26+
"protobuf",
27+
],
28+
classifiers=[
29+
"Programming Language :: Python :: 3",
30+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
31+
"Operating System :: OS Independent",
32+
"Intended Audience :: Developers",
33+
"Topic :: Internet :: Proxy Servers",
34+
"Topic :: System :: Networking",
35+
],
36+
37+
python_requires=">=3.8",
38+
)

0 commit comments

Comments
 (0)