-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
60 lines (51 loc) · 1.71 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
import os
import re
import sys
from io import open
from setuptools import setup
if sys.version_info < (3, 10):
print('Chronoscope requires at least Python 3.10 to run.')
sys.exit(1)
with open(os.path.join('chronoscope', '__init__.py'), encoding='utf-8') as f:
rexp = r"^__version__ = ['\"]([^'\"]*)['\"]"
version = re.search(rexp, f.read(), re.M).group(1) # type: ignore
if not version:
raise RuntimeError('Cannot find Chronoscope version information.')
def install_requires():
requires = [
'peewee',
'matplotlib',
'PyYAML',
'graphviz',
'packaging',
'scipy',
'pyvcd',
]
return requires
setup(
name='Chronoscope',
version=version,
description="A cross-platform matplotlib-based observability tool",
long_description="A cross-platform matplotlib-based observability tool",
author='Anatoliy Bilenko',
author_email='[email protected]',
url='https://github.com/just-now/chronoscope',
license='LGPLv3',
keywords="cli observability",
python_requires=">=3.10",
install_requires=install_requires(),
packages=['chronoscope'],
entry_points={"console_scripts": ["chronoscope=chronoscope:main"]},
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: System :: Monitoring'
]
)