Zack Williams | 73a1285 | 2018-09-05 15:33:35 -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 xosutil.autoversion_setup import setup_with_auto_version |
| 18 | from xosutil.version import __version__ |
| 19 | |
| 20 | |
| 21 | def readme(): |
Zack Williams | 045b63d | 2019-01-22 16:30:57 -0700 | [diff] [blame] | 22 | with open("README.rst") as f: |
Zack Williams | 73a1285 | 2018-09-05 15:33:35 -0700 | [diff] [blame] | 23 | return f.read() |
| 24 | |
| 25 | |
| 26 | setup_with_auto_version( |
Zack Williams | 045b63d | 2019-01-22 16:30:57 -0700 | [diff] [blame] | 27 | name="xoskafka", |
Zack Williams | 73a1285 | 2018-09-05 15:33:35 -0700 | [diff] [blame] | 28 | version=__version__, |
Zack Williams | 045b63d | 2019-01-22 16:30:57 -0700 | [diff] [blame] | 29 | description="Wrapper around kafka for XOS", |
Zack Williams | 73a1285 | 2018-09-05 15:33:35 -0700 | [diff] [blame] | 30 | long_description=readme(), |
Zack Williams | 045b63d | 2019-01-22 16:30:57 -0700 | [diff] [blame] | 31 | classifiers=["License :: OSI Approved :: Apache Software License"], |
| 32 | author="Zack Williams", |
| 33 | author_email="zdw@opennetworking.org", |
| 34 | packages=["xoskafka"], |
| 35 | license="Apache v2", |
Zack Williams | 73a1285 | 2018-09-05 15:33:35 -0700 | [diff] [blame] | 36 | install_requires=[ |
Zack Williams | 045b63d | 2019-01-22 16:30:57 -0700 | [diff] [blame] | 37 | "confluent-kafka>=0.11.5", |
| 38 | "xosconfig>=2.1.0", |
| 39 | "multistructlog>=1.5", |
| 40 | ], |
Zack Williams | 73a1285 | 2018-09-05 15:33:35 -0700 | [diff] [blame] | 41 | include_package_data=True, |
| 42 | zip_safe=False, |
Zack Williams | 045b63d | 2019-01-22 16:30:57 -0700 | [diff] [blame] | 43 | ) |