-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
setup.py
78 lines (71 loc) · 2.17 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
from setuptools import setup, find_packages
import platform
import os
# Pull version from source without importing
# since we can't import something we haven't built yet :)
exec(open('kafka_influxdb/version.py').read())
readme = 'README.md'
if os.path.exists('README.rst'):
readme = 'README.rst'
with open(readme, 'rb') as f:
long_description = f.read().decode('utf-8')
requires = [
"certifi",
"funcsigs",
"influxdb",
"kafka-python",
"pbr",
"python-dateutil",
"pytz",
"PyYAML",
"requests",
"six",
"virtualenv",
"wheel",
"pytest-runner",
]
test_requires = [
"pytest",
"profilehooks",
"mock",
]
# Get an additional speedup with ujson,
# which is faster than the normal Python json module.
# ujson does not work with PyPy
# See https://github.com/esnme/ultrajson/issues/98
if not platform.python_implementation() == 'PyPy':
requires.extend([
"ujson",
"confluent_kafka"
])
setup(name='kafka_influxdb',
version=__version__,
description='A Kafka consumer for InfluxDB',
long_description=long_description,
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Topic :: Utilities',
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: Implementation :: PyPy",
],
keywords='kafka influxdb metrics consumer',
url='http://github.com/mre/kafka-influxdb',
author='Matthias Endler',
author_email='matthias-endler@gmx.net',
license='Apache',
packages=find_packages(),
install_requires=requires,
tests_require=test_requires,
entry_points={
'console_scripts': ['kafka_influxdb=kafka_influxdb.__main__:main'],
},
include_package_data=True,
zip_safe=False)