Uh oh!
There was an error while loading. Please reload this page.
forked from qwj/python-proxy
- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
59 lines (56 loc) · 1.85 KB
/
Copy pathsetup.py
File metadata and controls
59 lines (56 loc) · 1.85 KB
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
55
56
57
58
59
fromsetuptoolsimportsetup
importos, re
defread(*names, **kwargs):
withopen(os.path.join(os.path.dirname(__file__), *names), encoding='utf8') asfp:
returnfp.read()
deffind_value(name):
data_file=read('pproxy', '__doc__.py')
data_match=re.search(r"^__%s__ += ['\"]([^'\"]*)['\"]"%name, data_file, re.M)
ifdata_match:
returndata_match.group(1)
raiseRuntimeError(f"Unable to find '{name}' string.")
setup(
name=find_value('title'),
use_scm_version=True,
description=find_value('description'),
long_description=read('README.rst'),
url=find_value('url'),
author=find_value('author'),
author_email=find_value('email'),
license=find_value('license'),
python_requires='>=3.6',
keywords=find_value('keywords'),
packages= ['pproxy'],
classifiers= [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Natural Language :: English',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
extras_require= {
'accelerated': [
'pycryptodome >= 3.7.2',
'uvloop >= 0.13.0'
],
'sshtunnel': [
'asyncssh >= 2.5.0',
],
'quic': [
'aioquic >= 0.9.7',
],
'daemon': [
'python-daemon >= 2.2.3',
],
},
install_requires= [],
entry_points= {
'console_scripts': [
'pproxy = pproxy.server:main',
],
},
)