-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
85 lines (75 loc) · 2.59 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
#
# This file is part of snmpsim-control-plane software.
#
# Copyright (c) 2019-2020, Ilya Etingof <[email protected]>
# License: http://snmplabs.com/snmpsim-control-plane/license.html
#
"""SNMP Simulator Control Plane.
REST API driven management and monitoring supervisor to
remotely operate SNMP simulator.
"""
import os
import sys
import setuptools
CLASSIFIERS = """\
Development Status :: 4 - Beta
Environment :: Console
Intended Audience :: Developers
Intended Audience :: Information Technology
Intended Audience :: System Administrators
Intended Audience :: Telecommunications Industry
License :: OSI Approved :: BSD License
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.2
Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Topic :: Communications
Topic :: System :: Monitoring
Topic :: System :: Networking :: Monitoring
"""
if sys.version_info[:2] < (2, 7):
print("ERROR: this package requires Python 2.7 or later!")
sys.exit(1)
with open(os.path.join('snmpsim_control_plane', '__init__.py')) as fl:
version = fl.read().split('\'')[1]
# make sure to have fresh `setuptools` for this to work
with open('requirements.txt') as fl:
requirements = fl.readlines()
DOCLINES = [x.strip() for x in (__doc__ or '').split('\n') if x]
PARAMS = {
'name': 'snmpsim-control-plane',
'version': version,
'description': DOCLINES[0],
'long_description': ' '.join(DOCLINES[1:]),
'maintainer': 'Ilya Etingof <[email protected]>',
'author': 'Ilya Etingof',
'author_email': '[email protected]',
'url': 'http://snmplabs.com/snmpsim-control-plane',
'license': 'BSD',
'platforms': ['any'],
'classifiers': [x for x in CLASSIFIERS.split('\n') if x],
'packages': setuptools.find_packages(),
'entry_points': {
'console_scripts': [
'snmpsim-mgmt-restapi = snmpsim_control_plane.commands'
'.management:main',
'snmpsim-mgmt-supervisor = snmpsim_control_plane.commands'
'.supervisor:main',
'snmpsim-metrics-importer = snmpsim_control_plane.commands'
'.importer:main',
'snmpsim-metrics-restapi = snmpsim_control_plane.commands'
'.metrics:main',
]
},
'install_requires': requirements,
'zip_safe': False, # Flask
'include_package_data': True
}
setuptools.setup(**PARAMS)