-
Notifications
You must be signed in to change notification settings - Fork 34
/
setup.py
67 lines (60 loc) · 2.19 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
60
61
62
63
64
65
66
67
# -*- coding: utf-8 -*-
"""setup.py: setuptools control."""
import io
import versioneer
import os
from setuptools import setup
# Read version and other info from package's __init.py file
module_info = {}
init_path = os.path.join(os.path.dirname(__file__), 'onionbalance',
'__init__.py')
with open(init_path) as init_file:
exec(init_file.read(), module_info)
def read(*names, **kwargs):
return io.open(
os.path.join(os.path.dirname(__file__), *names),
encoding=kwargs.get("encoding", "utf8")
).read()
setup(
name="Onionbalance",
packages=["onionbalance",
"onionbalance.hs_v3", "onionbalance.hs_v3.ext", "onionbalance.common",
"onionbalance.config_generator"],
entry_points={
"console_scripts": [
'onionbalance = onionbalance.manager:main',
'onionbalance-config = onionbalance.config_generator.config_generator:main',
]},
description="Onionbalance provides load-balancing and redundancy for Tor "
"hidden services by distributing requests to multiple backend "
"Tor instances.",
long_description=read('README.md'),
long_description_content_type='text/markdown',
author=module_info.get('__author__'),
author_email=module_info.get('__contact__'),
url=module_info.get('__url__'),
license=module_info.get('__license__'),
keywords='tor',
python_requires='>=3.6',
install_requires=[
'setuptools',
'stem>=1.8',
'PyYAML>=4.2b1',
'pycryptodomex',
'setproctitle',
'cryptography>=2.5',
],
tests_require=['pytest-mock', 'pytest', 'mock', 'pexpect', 'pylint', 'flake8', 'coveralls'],
package_data={'onionbalance.config_generator': ['data/*']},
include_package_data=True,
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
],
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
)