-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathsetup.py
54 lines (46 loc) · 1.63 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import os.path
import re
from setuptools import find_namespace_packages, setup
VERSION_RE = re.compile(r"""__version__ = ['"]([0-9.]+)['"]""")
BASE_PATH = os.path.dirname(__file__)
with open(os.path.join(BASE_PATH, "shadowproxy", "__init__.py")) as f:
try:
version = VERSION_RE.search(f.read()).group(1)
except IndexError:
raise RuntimeError("Unable to determine version.")
with open(os.path.join(BASE_PATH, "README.md")) as readme:
long_description = readme.read()
setup(
name="shadowproxy",
description="A proxy server that implements "
"Socks5/Shadowsocks/Redirect/HTTP (tcp) "
"and Shadowsocks/TProxy/Tunnel (udp) protocols.",
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
version=version,
author="Yingbo Gu",
author_email="[email protected]",
maintainer="Yingbo Gu",
maintainer_email="[email protected]",
url="https://github.com/guyingbo/shadowproxy",
packages=find_namespace_packages(include=["shadowproxy*"]),
install_requires=[
"pycryptodome>=3.4.3",
"curio==0.9",
"pylru>=1.0.9",
# "microstats>=0.1.0",
"iofree>=0.2.4",
"httptools",
"hkdf",
],
entry_points={"console_scripts": ["shadowproxy = shadowproxy.__main__:main"]},
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
setup_requires=["pytest-runner"],
tests_require=["pytest", "coverage", "pytest-cov"],
)