diff options
author | nicolargo <nicolas@nicolargo.com> | 2019-01-20 10:56:30 +0100 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2019-01-20 10:56:30 +0100 |
commit | 62debf21b4e22425caa4b71c0b423638dd6daf36 (patch) | |
tree | 9cce5a60abbf1f3ab0140d8707c0a521fd2ffb70 /setup.py | |
parent | fede502478b341e5d6797209272485f9e269681f (diff) |
Documentation is unclear how to get Docker information #1386 and also add a all target to the Pip install in order to install all dependencies
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 48 |
1 files changed, 28 insertions, 20 deletions
@@ -49,6 +49,33 @@ def get_install_requires(): return requires +def get_install_extras_require(): + extras_require = { + 'action': ['pystache'], + # Zeroconf 0.19.1 is the latest one compatible with Python 2 (issue #1293) + 'browser': ['zeroconf==0.19.1' if PY2 else 'zeroconf>=0.19.1'], + 'cloud': ['requests'], + 'cpuinfo': ['py-cpuinfo'], + 'docker': ['docker>=2.0.0'], + 'export': ['bernhard', 'cassandra-driver', 'couchdb', 'elasticsearch', + 'influxdb>=1.0.0', 'kafka-python', 'pika', 'paho-mqtt', 'potsdb', + 'prometheus_client', 'pyzmq', 'statsd'], + 'folders': ['scandir'], # python_version<"3.5" + 'gpu': ['nvidia-ml-py3'], # python_version=="2.7" + 'graph': ['pygal'], + 'ip': ['netifaces'], + 'raid': ['pymdstat'], + 'smart': ['pySMART.smartx'], + 'snmp': ['pysnmp'], + 'web': ['bottle', 'requests'], + 'wifi': ['wifi'] + } + # Add automatically the 'all' target + extras_require.update({'all': [i[0] for i in extras_require.values()]}) + + return extras_require + + class tests(Command): user_options = [] @@ -82,26 +109,7 @@ setup( keywords="cli curses monitoring system", python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", install_requires=get_install_requires(), - extras_require={ - 'action': ['pystache'], - # Zeroconf 0.19.1 is the latest one compatible with Python 2 (issue #1293) - 'browser': ['zeroconf==0.19.1' if PY2 else 'zeroconf>=0.19.1'], - 'cloud': ['requests'], - 'cpuinfo': ['py-cpuinfo'], - 'docker': ['docker>=2.0.0'], - 'export': ['bernhard', 'cassandra-driver', 'couchdb', 'elasticsearch', - 'influxdb>=1.0.0', 'kafka-python', 'pika', 'paho-mqtt', 'potsdb', - 'prometheus_client', 'pyzmq', 'statsd'], - 'folders': ['scandir'], # python_version<"3.5" - 'gpu': ['nvidia-ml-py3'], # python_version=="2.7" - 'graph': ['pygal'], - 'ip': ['netifaces'], - 'raid': ['pymdstat'], - 'smart': ['pySMART.smartx'], - 'snmp': ['pysnmp'], - 'web': ['bottle', 'requests'], - 'wifi': ['wifi'] - }, + extras_require=get_install_extras_require(), packages=['glances'], include_package_data=True, data_files=get_data_files(), |