This repository has been archived by the owner on Feb 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsetup.py
65 lines (55 loc) · 2.03 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
60
61
62
63
64
65
#!/usr/bin/env python
import collections
from setuptools import setup, find_packages
from pip.req import parse_requirements
def get_install_requirements():
ReqOpts = collections.namedtuple('ReqOpts', ['skip_requirements_regex', 'default_vcs'])
opts = ReqOpts(None, 'git')
requires = []
dependency_links = []
for ir in parse_requirements('requirements.txt', options=opts):
if ir is not None:
if ir.url is not None:
dependency_links.append(str(ir.url))
if ir.req is not None:
requires.append(str(ir.req))
return requires, dependency_links
install_requires, dependency_links = get_install_requirements()
setup(
name="hacheck",
version="0.12.0",
author="James Brown",
author_email="jbrown@uber.com",
url="https://github.com/uber/hacheck",
license="MIT",
packages=find_packages(exclude=['tests']),
keywords=["monitoring", "load-balancing", "networking"],
description="HAProxy health-check proxying service",
install_requires=install_requires,
dependency_links=dependency_links,
test_suite="nose.collector",
entry_points={
'console_scripts': [
'haup = hacheck.haupdown:up',
'hadown = hacheck.haupdown:down',
'hashowdowned = hacheck.haupdown:status_downed',
'hastatus = hacheck.haupdown:status',
'halist = hacheck.haupdown:halist',
'hacheck = hacheck.main:main',
]
},
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Topic :: System :: Monitoring",
]
)