forked from julien6387/supvisors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
94 lines (83 loc) · 3.63 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/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
py_version = sys.version_info[:2]
if py_version < (3, 6):
raise RuntimeError('Supvisors requires Python 3.6 or later')
requires = ['supervisor >= 4.2.4']
statistics_require = ['psutil >= 5.7.3', 'pyparsing >= 2.0.2, < 3', 'matplotlib >= 3.3.3']
xml_valid_require = ['lxml >= 4.6.2']
flask_require = ['flask-restx == 0.5.1', 'Werkzeug == 2.0.3']
zmq_require = ['pyzmq >= 20.0.0']
testing_extras = ['pytest >= 2.5.2', 'pytest-cov']
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.md')).read()
CHANGES = open(os.path.join(here, 'CHANGES.md')).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 :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Natural Language :: English",
"Environment :: No Input/Output (Daemon)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"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()
setup(name='supvisors',
version=supvisors_version,
description="A Control System for Distributed Applications",
long_description=README + '\n\n' + CHANGES,
long_description_content_type='text/markdown',
classifiers=CLASSIFIERS,
author="Julien Le Cléach",
author_email="[email protected]",
url="https://github.com/julien6387/supvisors",
download_url='https://github.com/julien6387/supvisors/archive/%s.tar.gz' % supvisors_version,
platforms=[
"Rocky 8.5"
],
packages=find_packages(),
install_requires=requires,
extras_require={'statistics': statistics_require,
'xml_valid': xml_valid_require,
'flask': flask_require,
'zwq': zmq_require,
'all': statistics_require + xml_valid_require + flask_require + zmq_require,
'testing': testing_extras},
include_package_data=True,
zip_safe=False,
namespace_packages=['supvisors'],
test_suite="supvisors.tests",
entry_points={'console_scripts': ['supvisorsctl = supvisors.supvisorsctl:main',
'supvisors_breed = supvisors.tools.breed:main',
'supvisorsflask = supvisors.tools.supvisorsflask:main']}
)