forked from julien6387/supvisors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
79 lines (69 loc) · 2.76 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
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# ======================================================================
# Copyright 2016 Julien LE CLEACH
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ======================================================================
import os
import sys
from setuptools import setup, find_packages
if sys.version_info[:2] < (2, 7) or sys.version_info[0] > 2:
msg = ("Supvisors requires Python 2.7 or later but does not work on "
"any version of Python 3. You are using version %s. Please "
"install using a supported version." % sys.version)
sys.stderr.write(msg)
sys.exit(1)
requires = ['supervisor >= 3.3.0', 'pyzmq >= 15.2.0', 'psutil >= 4.3.0']
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
except:
README = """Supvisors is a control system for distributed applications over multiple Supervisor instances. """
CHANGES = ''
CLASSIFIERS = [
"License :: OSI Approved :: Apache Software License",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Natural Language :: English",
"Environment :: No Input/Output (Daemon)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 2.7",
"Topic :: System :: Boot",
"Topic :: System :: Monitoring",
"Topic :: System :: Software Distribution"
]
version_txt = os.path.join(here, 'supvisors/version.txt')
supvisors_version = open(version_txt).read().split('=')[1].strip()
dist = setup(
name='supvisors',
version=supvisors_version,
description="A Control System for Distributed Applications",
long_description=README + '\n\n' + CHANGES,
classifiers=CLASSIFIERS,
author="Julien Le Cléach",
author_email="[email protected]",
url="https://github.com/julien6387/supvisors",
platforms=[
"CentOS 7.2"
],
packages=find_packages(),
install_requires=requires,
extras_require={'parse': ['netifaces >= 0.10.4', 'matplotlib >= 1.5.2', 'lxml >= 3.2.1']},
include_package_data=True,
zip_safe=False,
namespace_packages=['supvisors'],
test_suite="supvisors.tests",
)