-
Notifications
You must be signed in to change notification settings - Fork 339
/
setup.py
59 lines (56 loc) · 1.85 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
55
56
57
58
59
from setuptools import setup
import os, re
def read(*names, **kwargs):
with open(os.path.join(os.path.dirname(__file__), *names), encoding='utf8') as fp:
return fp.read()
def find_value(name):
data_file = read('pproxy', '__doc__.py')
data_match = re.search(r"^__%s__ += ['\"]([^'\"]*)['\"]" % name, data_file, re.M)
if data_match:
return data_match.group(1)
raise RuntimeError(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',
],
},
)