-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
47 lines (40 loc) · 1.49 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
#!/usr/bin/env python
import sys
import uuid
from setuptools import setup, find_packages
try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
__author__ = 'Damien Garros <[email protected]>'
requirements_data = parse_requirements('requirements.txt', session=uuid.uuid1())
requirements = [str(package.req) for package in requirements_data]
version = '0.1.1'
long_description = "Python Collector for Metrics Data, currently support Junos and F5"
params = {
'name': 'py-metric-collector',
'version': version,
'package_dir': {'': 'lib'},
'packages': ["metric_collector"],
'scripts': [
'bin/metric-collector'
],
'url': 'https://github.com/xxx',
'license': 'Apache License, Version 2.0',
'author': 'Damien Garros',
'author_email': '[email protected]',
'description': 'Collect timeserie information from various devices, currently support Junos and F5',
'install_requires': requirements,
'classifiers': [
'Topic :: Utilities',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
'keywords': 'netconf junos juniper timeserie tsdb f5 bigip'
}
setup(**params)