forked from oftc/toripscanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
74 lines (64 loc) · 1.99 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
68
69
70
71
72
73
74
#!/usr/bin/env python3
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
import os
from toripscanner import __version__
here = os.path.abspath(os.path.dirname(__file__))
def long_description():
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
return f.read()
def get_package_data():
return [
'config.default.ini',
'config.log.default.ini',
'parse-header.txt',
]
def get_data_files():
pass
setup(
name='TorIPScanner',
version=__version__,
description='Scan Tor exits for the IPs they use.',
long_description=long_description(),
long_description_content_type='text/markdown',
author='Matt Traudt',
author_email='[email protected]',
license='MIT',
url='https://github.com/oftc/TorIPScanner',
classifiers=[
'Development Status :: 4 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.7',
'Topic :: System :: Networking',
],
packages=find_packages(),
include_package_data=True,
package_data={
'toripscanner': get_package_data(),
},
# data_files=get_data_files(),
keywords='tor measurement scanner relay exit',
python_requires='>=3.7.3',
entry_points={
'console_scripts': [
'toripscanner = toripscanner.toripscanner:main',
]
},
install_requires=[
'stem==1.8.0',
'PySocks==1.7.1',
'PyYAML==5.4.1',
# 'cbor2==5.2.0',
],
extras_require={
# 'dev': ['flake8==3.8.1', 'vulture==1.4', 'mypy==0.770'],
# 'doc': ['sphinx==3.0.3', 'sphinx-autodoc-typehints==1.10.3'],
# 'test': ['tox==3.15.1', 'pytest==5.4.2', 'coverage==5.1'],
'dev': ['flake8==3.9.2', 'mypy==0.910', 'vulture==2.3'],
},
)