-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathsetup.py
53 lines (45 loc) · 1.47 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
#!/usr/bin/env python
import os
import sys
import uuid
from pip.req import parse_requirements
from codecs import open
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
packages = [
'python_kafka_logging',
]
install_requirements = parse_requirements('requirements.txt', None, None, None, uuid.uuid1())
requirements = [str(ir.req) for ir in install_requirements]
with open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
setup(
name='python_kafka_logging',
version=0.6,
description='Simple python logging handler for forwarding logs to a kafka server.',
long_description=readme + '\n\n',
maintainer="Taykey INC",
maintainer_email="[email protected]",
author='Avihoo Mamka',
author_email='[email protected]',
url='https://github.com/taykey/python-kafka-logging',
packages=packages,
package_data={'': ['LICENSE.txt', 'README.rst']},
include_package_data=True,
install_requires=requirements,
license='Apache 2.0',
zip_safe=False,
keywords=['python', 'logging', 'handler', 'example', 'kafka', 'logs', 'logstash', 'formatter'],
classifiers=(
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
),
)