This repository has been archived by the owner on Apr 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
51 lines (42 loc) · 1.55 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
"""Setup file for ZMON service level reports command line tool"""
import os
from setuptools import setup
def read_version(package):
data = {}
with open(os.path.join(package, '__init__.py'), 'r') as fd:
exec(fd.read(), data)
return data['__version__']
MAIN_PACKAGE = 'zmon_slr'
VERSION = read_version(MAIN_PACKAGE)
DESCRIPTION = 'ZMON SLO reports.'
CONSOLE_SCRIPTS = ['zmon-slr = zmon_slr.main:main']
PACKAGE_DATA = {MAIN_PACKAGE: ['templates/*.*']}
REQUIREMENTS = ['clickclick', 'stups-zign', 'zmon-cli', 'jinja2']
setup(
name='zmon-slr',
version=VERSION,
description=DESCRIPTION,
long_description=open('README.rst').read(),
license=open('LICENSE').read(),
packages=[MAIN_PACKAGE],
package_data=PACKAGE_DATA,
install_requires=REQUIREMENTS,
setup_requires=['pytest-runner'],
test_suite='tests',
tests_require=['pytest', 'pytest_cov', 'mock==2.0.0'],
entry_points={'console_scripts': CONSOLE_SCRIPTS},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python',
'Topic :: System :: Monitoring',
'Topic :: System :: Networking :: Monitoring',
]
)