This repository has been archived by the owner on Sep 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
74 lines (66 loc) · 1.69 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
import sys
import re
from setuptools import setup, find_packages
def get_version():
with open('traptor/version.py') as version_file:
return re.search(r"""__version__\s+=\s+(['"])(?P<version>.+?)\1""",
version_file.read()).group('version')
def readme():
''' Returns README.rst contents as str '''
with open('README.rst') as f:
return f.read()
#with open('requirements.txt') as f:
# install_requires = [x.strip() for x in f]
install_requires = [
'birdy>=0.2',
'requests>=1.2.3',
'requests-oauthlib>=0.3.2',
'redis>=2.10.3',
'kafka-python>=0.9.5',
'python-dateutil',
'click',
'mock',
'scutils>=0.0.6',
'flatdict',
'raven',
'datadog'
]
lint_requires = [
'pep8',
'pyflakes'
]
tests_require = [
'mock',
'pytest',
'pymysql',
'pytest-cov',
'pytest-xdist'
]
dependency_links = []
setup_requires = ['pytest-runner']
extras_require = {
'test': tests_require,
'all': install_requires + tests_require,
'docs': ['sphinx'] + tests_require,
'lint': lint_requires
}
setup(
name='traptor',
version=get_version(),
description='A distributed twitter streaming service',
long_description=readme(),
author='Jason Haas',
author_email='jasonrhaas@gmail.com',
license='MIT',
url='https://github.com/istresearch/traptor',
keywords=['twitter', 'distributed', 'kafka', 'ansible', 'redis'],
packages=['traptor'],
package_data={},
install_requires=install_requires,
tests_require=tests_require,
setup_requires=setup_requires,
extras_require=extras_require,
dependency_links=dependency_links,
zip_safe=True,
include_package_data=True,
)