blob: c38e5788470b4f9ea8a1b728049f5271aedc97e3 [file] [log] [blame]
Zack Williams9e8efd32018-10-17 15:01:13 -07001#!/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
17from setuptools import setup
18
19
20def readme():
21 with open('README.rst') as f:
22 return f.read()
23
24
25def version():
26 with open('VERSION') as f:
27 return f.read()
28
29
30def 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
35setup(
36 name='kafkaloghandler',
37 version=version(),
38 description='Kafka Logging Handler',
39 long_description=readme(),
40 classifiers=[
Zack Williams1f300022018-10-26 15:30:23 -070041 'Development Status :: 4 - Beta',
Zack Williams9e8efd32018-10-17 15:01:13 -070042 'Topic :: System :: Logging',
43 'Topic :: Internet :: Log Analysis',
44 'License :: OSI Approved :: Apache Software License',
Zack Williams1f300022018-10-26 15:30:23 -070045 'Programming Language :: Python :: 2.7',
46 'Programming Language :: Python :: 3',
Zack Williams9e8efd32018-10-17 15:01:13 -070047 ],
Zack Williams1f300022018-10-26 15:30:23 -070048 keywords=['kafka', 'logging', 'log handler', 'message bus'],
Zack Williams9e8efd32018-10-17 15:01:13 -070049 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 Williams1f300022018-10-26 15:30:23 -070055 data_files=[('', ['VERSION', 'requirements.txt', 'README.rst'])],
Zack Williams9e8efd32018-10-17 15:01:13 -070056)