This repository has been archived by the owner on Jan 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
/
setup.py
75 lines (66 loc) · 1.83 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
from setuptools import find_packages, setup
import re
version = None
with open('tchannel/__init__.py', 'r') as f:
for line in f:
m = re.match(r'^__version__\s*=\s*(["\'])([^"\']+)\1', line)
if m:
version = m.group(2)
break
if not version:
raise Exception(
'Could not determine version number from tchannel/__init__.py'
)
setup(
name='tchannel',
version=version,
author=', '.join([
'Abhinav Gupta',
'Aiden Scandella',
'Bryce Lampe',
'Grayson Koonce',
'Junchao Wu',
]),
author_email='[email protected]',
description='Network multiplexing and framing protocol for RPC',
license='MIT',
url='https://github.com/uber/tchannel-python',
keywords=['rpc'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages=find_packages(exclude=['crossdock', 'tests', 'tests.*']),
package_data={
'': ['*.thrift'],
},
install_requires=[
# stdlib backports, no constraints needed
'contextlib2',
'futures',
# external deps
'crcmod>=1,<2',
'tornado>=4.3,<5',
# tchannel deps
'thriftrw>=0.4,<2',
'threadloop>=1,<2',
# tracing deps
'opentracing>2',
'opentracing_instrumentation>3',
# python 3 compat
'six',
'future'
],
extras_require={
'vcr': ['PyYAML', 'mock', 'wrapt'],
},
entry_points={
'console_scripts': [
'tcurl.py = tchannel.tcurl:start_ioloop'
]
},
)