Zack Williams | 9e8efd3 | 2018-10-17 15:01:13 -0700 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | |
| 3 | # Copyright 2018-present Open Networking Foundation |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | |
| 17 | from setuptools import setup |
| 18 | |
| 19 | |
| 20 | def readme(): |
| 21 | with open('README.rst') as f: |
| 22 | return f.read() |
| 23 | |
| 24 | |
| 25 | def version(): |
| 26 | with open('VERSION') as f: |
| 27 | return f.read() |
| 28 | |
| 29 | |
| 30 | def parse_requirements(filename): |
| 31 | lineiter = (line.strip() for line in open(filename)) |
| 32 | return [line for line in lineiter if line and not line.startswith("#")] |
| 33 | |
| 34 | |
| 35 | setup( |
| 36 | name='kafkaloghandler', |
| 37 | version=version(), |
| 38 | description='Kafka Logging Handler', |
| 39 | long_description=readme(), |
| 40 | classifiers=[ |
Zack Williams | 1f30002 | 2018-10-26 15:30:23 -0700 | [diff] [blame] | 41 | 'Development Status :: 4 - Beta', |
Zack Williams | 9e8efd3 | 2018-10-17 15:01:13 -0700 | [diff] [blame] | 42 | 'Topic :: System :: Logging', |
| 43 | 'Topic :: Internet :: Log Analysis', |
| 44 | 'License :: OSI Approved :: Apache Software License', |
Zack Williams | 1f30002 | 2018-10-26 15:30:23 -0700 | [diff] [blame] | 45 | 'Programming Language :: Python :: 2.7', |
| 46 | 'Programming Language :: Python :: 3', |
Zack Williams | 9e8efd3 | 2018-10-17 15:01:13 -0700 | [diff] [blame] | 47 | ], |
Zack Williams | 1f30002 | 2018-10-26 15:30:23 -0700 | [diff] [blame] | 48 | keywords=['kafka', 'logging', 'log handler', 'message bus'], |
Zack Williams | 9e8efd3 | 2018-10-17 15:01:13 -0700 | [diff] [blame] | 49 | url='https://gerrit.opencord.org/gitweb?p=kafkaloghandler.git', |
| 50 | author='Zack Williams', |
| 51 | author_email='zdw@opennetworking.org', |
| 52 | packages=['kafkaloghandler'], |
| 53 | license='Apache v2', |
| 54 | install_requires=parse_requirements('requirements.txt'), |
Zack Williams | 1f30002 | 2018-10-26 15:30:23 -0700 | [diff] [blame] | 55 | data_files=[('', ['VERSION', 'requirements.txt', 'README.rst'])], |
Zack Williams | 9e8efd3 | 2018-10-17 15:01:13 -0700 | [diff] [blame] | 56 | ) |