Varun Belur | f81a5fc | 2017-08-11 16:52:59 -0700 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | # |
| 3 | # Copyright 2017-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 | |
Zack Williams | 4113213 | 2018-10-19 12:14:45 -0700 | [diff] [blame] | 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='multistructlog', |
| 37 | version=version(), |
| 38 | description='structlog with multiple simultaneous logging backends', |
| 39 | long_description=readme(), |
| 40 | author='Varun Belur, Sapan Bhatia, Zack Williams', |
| 41 | author_email=''' |
| 42 | varun@opennetworking.org,sapan@opennetworking.org,zdw@opennetworking.org |
| 43 | ''', |
| 44 | py_modules=['multistructlog'], |
| 45 | license='Apache v2', |
| 46 | classifiers=[ |
| 47 | 'Development Status :: 5 - Production/Stable', |
| 48 | 'Intended Audience :: Developers', |
| 49 | 'Topic :: System :: Logging', |
| 50 | 'License :: OSI Approved :: Apache Software License', |
| 51 | 'Programming Language :: Python :: 2.7', |
| 52 | 'Programming Language :: Python :: 3', |
| 53 | ], |
| 54 | copyright='Open Networking Foundation', |
| 55 | include_package_data=True, |
| 56 | install_requires=parse_requirements('requirements.txt'), |
| 57 | keywords=['multistructlog', 'structlog', 'multiple backends'], |
| 58 | data_files=[('', ['VERSION', 'requirements.txt', 'README.rst'])], |
| 59 | ) |