-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
executable file
·59 lines (48 loc) · 1.63 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Setup file for kubernetes log watcher.
"""
import os
from setuptools import setup, find_packages
def read_version(package):
data = {}
with open(os.path.join(package, '__init__.py'), 'r') as fd:
exec(fd.read(), data)
return data['__version__']
def get_requirements(path):
content = open(path).read()
return [req for req in content.split('\\n') if req != '']
MAIN_PACKAGE = 'kube_log_watcher'
VERSION = read_version(MAIN_PACKAGE)
DESCRIPTION = 'Kubernetes log watcher'
CONSOLE_SCRIPTS = ['kube-log-watcher=kube_log_watcher.main:main']
setup(
name='kubernetes-log-watcher',
version=VERSION,
description=DESCRIPTION,
long_description=open('README.rst').read(),
license=open('LICENSE').read(),
packages=find_packages(exclude=['tests']),
install_requires=get_requirements('requirements.txt'),
setup_requires=['pytest-runner'],
test_suite='tests',
tests_require=['pytest', 'pytest_cov', 'mock==2.0.0'],
entry_points={
'console_scripts': CONSOLE_SCRIPTS
},
include_package_data=True,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python',
'Programming Language :: Python :: Implementation :: CPython',
'Environment :: Console',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS :: MacOS X',
'Topic :: System :: Monitoring',
'Topic :: System :: Networking :: Monitoring',
]
)