-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathsetup.py
More file actions
60 lines (55 loc) · 2.15 KB
/
setup.py
File metadata and controls
60 lines (55 loc) · 2.15 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
60
#!/usr/bin/env python3
from setuptools import setup
import glob
import re
# Read version from __init__.py without importing (avoids dependency issues)
with open('fteproxy/__init__.py') as fh:
version_match = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fh.read(), re.MULTILINE)
FTEPROXY_RELEASE = version_match.group(1) if version_match else '0.0.0'
package_data_files = []
for filename in glob.glob('fteproxy/defs/*.json'):
jsonFile = filename.split('/')[-1]
package_data_files += ['defs/' + jsonFile]
package_data = {'fteproxy': package_data_files}
with open('PYPI_README.md', encoding='utf-8') as file:
long_description = file.read()
setup(
name='fteproxy',
version=FTEPROXY_RELEASE,
description='Format-Transforming Encryption proxy for censorship circumvention',
long_description=long_description,
long_description_content_type='text/markdown',
author='Kevin P. Dyer',
author_email='kpdyer@gmail.com',
url='https://github.com/kpdyer/fteproxy',
project_urls={
'Homepage': 'https://github.com/kpdyer/fteproxy',
'Documentation': 'https://github.com/kpdyer/fteproxy',
'Source': 'https://github.com/kpdyer/fteproxy',
'Bug Tracker': 'https://github.com/kpdyer/fteproxy/issues',
},
packages=['fteproxy', 'fteproxy.defs', 'fteproxy.tests'],
package_data=package_data,
install_requires=['fte'],
python_requires='>=3.8',
classifiers=[
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'License :: OSI Approved :: MIT License',
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Security :: Cryptography',
'Topic :: Internet :: Proxy Servers',
'Operating System :: OS Independent',
],
entry_points={
'console_scripts': [
'fteproxy = fteproxy.cli:main'
]
},
keywords='fte, encryption, proxy, censorship, privacy',
)