blob: 3b98a2a27d932e5621c7edf645adccde498a8db9 [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=[
41 'Topic :: System :: Logging',
42 'Topic :: Internet :: Log Analysis',
43 'License :: OSI Approved :: Apache Software License',
44 ],
45 keywords='kafka logging',
46 url='https://gerrit.opencord.org/gitweb?p=kafkaloghandler.git',
47 author='Zack Williams',
48 author_email='zdw@opennetworking.org',
49 packages=['kafkaloghandler'],
50 license='Apache v2',
51 install_requires=parse_requirements('requirements.txt'),
52 include_package_data=True,
53 zip_safe=False,
54)