This repository was archived by the owner on Mar 4, 2026. It is now read-only.
forked from avihoo/python-kafka-logging
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (43 loc) · 1.41 KB
/
setup.py
File metadata and controls
50 lines (43 loc) · 1.41 KB
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
#!/usr/bin/env python
import os
import sys
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',
]
with open("requirements.txt", "r") as fs:
requirements = [r for r in fs.read().splitlines() if (len(r) > 0 and not r.startswith("#"))]
with open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
setup(
name='python-kafka-logger',
version=0.5,
description='Simple python logging handler for forwarding logs to a kafka server.',
long_description=readme + '\n\n',
maintainer="Avihoo Mamka",
maintainer_email="avihoo.mamka@gmail.com",
author='Avihoo Mamka',
author_email='avihoo.mamka@gmail.com',
url='https://github.com/avihoo/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',
],
)