-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
107 lines (101 loc) · 2.82 KB
/
setup.py
File metadata and controls
107 lines (101 loc) · 2.82 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#!/usr/bin/env python
import os
import re
import subprocess
from setuptools import setup
VERSION = os.getenv("VERSION")
if VERSION is None:
# Extract the git tag as the version.
git_describe = subprocess.Popen(
["git", "describe", "--tags"],
stdout=subprocess.PIPE,
close_fds=True)
stdout, _ = git_describe.communicate()
if git_describe.returncode == 0:
m = re.match(".*-(\d+\.\d+\.\d+)-.*", stdout)
if m:
VERSION = m.group(1)
if VERSION is None:
# Use 0.1, as the version is unknown.
VERSION = "0.1"
setup(
name="reactor",
description="Load balancer and scale manager.",
version=VERSION,
author="Gridcentric Inc.",
author_email="support@gridcentric.com",
url="http://www.gridcentric.com",
install_requires=[
"httplib2",
"pyramid>=1.2",
"webob>=1.1",
"zope.interface>=3.6",
"Mako>=0.4.2",
"paste",
"PasteDeploy>=1.5",
"zkpython",
"netifaces",
"netaddr",
"python-ldap",
],
test_requires=[
"mock",
],
packages=[
"reactor",
"reactor.loadbalancer",
"reactor.loadbalancer.dnsmasq",
"reactor.loadbalancer.nginx",
"reactor.loadbalancer.haproxy",
"reactor.loadbalancer.tcp",
"reactor.loadbalancer.rdp",
"reactor.cloud",
"reactor.cloud.osapi",
"reactor.cloud.osvms",
"reactor.cloud.docker",
"reactor.metrics",
"reactor.objects",
"reactor.zookeeper",
],
package_data={
"reactor.loadbalancer.nginx" : [
"nginx.template",
"reactor.conf"
],
"reactor.loadbalancer.haproxy" : [
"haproxy.template"
],
"reactor.loadbalancer.dnsmasq" : [
"dnsmasq.template"
],
"reactor" : [
"admin/*.html",
"admin/include/*.html",
"admin/include/*.sh",
"admin/assets/*.js",
"admin/assets/*.png",
"admin/assets/*.css",
"admin/assets/*.sh",
"admin/assets/lib/*.js",
"admin/assets/lib/bootstrap/*/*",
]
},
include_package_data=True,
entry_points={
'console_scripts': [
'reactor = reactor.client:main',
'reactor-dump = reactor.dump:main',
'reactor-server = reactor.gui:main',
'reactor-manager = reactor.manager:main',
]
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Openstack',
'Intended Audience :: System Administrators',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Topic :: Internet :: Proxy Servers',
'Topic :: System :: Clustering',
],
)