-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
executable file
·62 lines (55 loc) · 1.81 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
#!/usr/bin/python3
import os
import platform
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
try:
with open(os.path.join(os.path.dirname(__file__), '..', 'README.md')) as f:
readme = f.read()
except IOError:
readme = 'Please read README.md for more details.'
description = """
A resource monitor that records resource usage (e.g., CPU usage, RAM usage and free,
disk I/O count, NIC speed, etc.) and outputs the data in CSV format that is easy to
post-process.
"""
with open('requirements.txt', 'r') as f:
install_requires = f.readlines()
setup(
name='python-resmon',
version='1.0.2',
author='Xiangyu Bu',
author_email='[email protected]',
license='MIT License',
keywords=['resource', 'monitor', 'csv', 'process', 'usage'],
url='https://github.com/xybu/python-resmon',
description=description,
long_description=readme,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: System',
'Topic :: System :: Monitoring',
'Topic :: System :: Networking :: Monitoring',
'Topic :: Utilities'],
install_requires=install_requires,
packages=find_packages(),
include_package_data=True,
exclude_package_data={'': ['README.*']},
entry_points={
'console_scripts': [
'resmon = resmon.resmon:main',
]
}
)