-
Notifications
You must be signed in to change notification settings - Fork 39
/
setup.py
64 lines (57 loc) · 2.07 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# by Al Nikolov <[email protected]>
import os
import sys
import setuptools
here = os.path.abspath(os.path.dirname(__file__))
readme = open(os.path.join(here, 'README.md')).read()
if sys.version.startswith('3.'):
install_requires = ['psutil', 'netifaces', 'configparser', 'future', 'distro']
elif sys.version.startswith('2.6'):
install_requires = ['psutil==5.7.0', 'netifaces', 'configparser==3.5.0', 'future']
elif sys.version.startswith('2.7'):
install_requires = ['psutil', 'netifaces', 'configparser==3.5.0', 'future']
else:
install_requires = ['psutil', 'netifaces', 'configparser', 'future']
setuptools.setup(
name='nixstatsagent',
version='1.2.18',
description='NixStats agent',
long_description_content_type='text/markdown',
long_description=readme,
url='https://github.com/NIXStats/nixstatsagent',
author='NIXStats',
author_email='[email protected]',
maintainer='Vincent',
maintainer_email='[email protected]',
license='BSD-3-Clause',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: No Input/Output (Daemon)',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: System :: Monitoring',
],
keywords='nixstats system monitoring agent',
install_requires=install_requires,
packages=setuptools.find_packages(),
entry_points={
'console_scripts': [
'nixstatsagent=nixstatsagent.nixstatsagent:main',
'nixstatshello=nixstatsagent.nixstatsagent:hello',
],
},
data_files=[('share/doc/nixstatsagent', [
'nixstats-example.ini',
'LICENSE',
'README.md',
])],
)