-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathsetup.py
83 lines (74 loc) · 2.13 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
75
76
77
78
79
80
81
82
83
from setuptools import find_packages, setup
import os
import sys
PYTHON3 = sys.version_info > (3, )
HERE = os.path.abspath(os.path.dirname(__file__))
def readme():
with open(os.path.join(HERE, 'README.rst')) as f:
return f.read()
def get_version():
with open(os.path.join(HERE, 'thrift_tools/__init__.py'), 'r') as f:
content = ''.join(f.readlines())
env = {}
if PYTHON3:
exec(content, env, env)
else:
compiled = compile(content, 'get_version', 'single')
eval(compiled, env, env)
return env['__version__']
setup(
name='thrift-tools',
version=get_version(),
description='Thrift protocol analyzer',
long_description=readme(),
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: System :: Distributed Computing',
'Topic :: System :: Networking',
],
keywords='thrift pcap',
url='https://github.com/pinterest/thrift-tools',
author='Raul Gutierrez Segales',
author_email='[email protected]',
license='Apache',
packages=find_packages(),
test_suite='thrift_tools.tests',
scripts=['bin/thrift-tool', 'bin/thrift-file-reader'],
install_requires=[
'ansicolors',
'dpkt==1.9.2',
'ptsd==0.2.0',
'scapy==2.4.5',
'thrift==0.11.0',
'tabulate',
],
tests_require=[
'ansicolors',
'dpkt',
'nose',
'ptsd==0.2.0',
'scapy==2.4.5',
'six==1.12.0',
'thrift==0.11.0',
'tabulate',
],
extras_require={
'test': [
'ansicolors',
'dpkt',
'nose',
'ptsd==0.2.0',
'scapy==2.4.5',
'six==1.12.0',
'thrift==0.11.0',
'tabulate',
],
},
include_package_data=True,
zip_safe=False
)