forked from qwj/python-vpn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (47 loc) · 1.74 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
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('pvpn', '__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'),
version = find_value('version'),
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 = ['pvpn'],
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',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],
install_requires = [
'pycryptodome >= 3.7.2',
'pproxy >= 2.0.0',
],
entry_points = {
'console_scripts': [
'pvpn = pvpn.server:main',
],
},
)