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 41
/
setup.py
56 lines (46 loc) · 2.11 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def load_req(fn):
return [r.strip() for r in open(fn).read().splitlines() if r.strip() and not r.strip().startswith('#')]
if __name__ == '__main__':
# just in case setup.py is launched from elsewhere than the containing directory
original_dir = os.getcwd()
os.chdir(os.path.dirname(os.path.abspath(__file__)))
try:
setup(
name='zmon-worker',
version=__import__('zmon_worker_monitor').__version__,
description='ZMON Worker Monitor',
url='https://github.com/zalando/zmon-worker',
license='Apache License 2.0',
packages=find_packages(exclude=['tests', 'tests.*']),
# workaround for bug in numpy+setuptools: https://github.com/numpy/numpy/issues/2434
setup_requires=['numpy==1.15.1', 'flake8', 'pytest-runner'],
install_requires=load_req('requirements.txt'),
test_suite='tests',
tests_require=load_req('test_requirements.txt'),
entry_points={
'console_scripts': [
'zmon-worker = zmon_worker_monitor.main:main',
]
},
include_package_data=True, # needed to include templates (see MANIFEST.in)
# more metadata for upload to PyPI
author='Henning Jacobs',
author_email='[email protected]',
keywords='zalando zmon zmon2 worker component monitoring infrastructure',
long_description=open('README.rst').read(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Topic :: Software Development :: Libraries :: Python Modules'],
platforms='All',
)
finally:
os.chdir(original_dir)