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 11
/
setup.py
59 lines (48 loc) · 1.62 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 ZMON AWS agent
"""
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 = 'zmon_aws_agent'
VERSION = read_version(MAIN_PACKAGE)
DESCRIPTION = 'ZMON AWS agent.'
CONSOLE_SCRIPTS = ['zmon-aws-agent = zmon_aws_agent.main:main']
setup(
name='zmon-aws-agent',
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
},
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'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',
]
)