diff options
author | nicolargo <nicolas@nicolargo.com> | 2021-07-09 10:03:37 +0200 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2021-07-09 10:03:37 +0200 |
commit | 9d6051be4a42f692392049fdbfc85d5dfa458b32 (patch) | |
tree | df10f3f97d338619f229fbbf9feca55da97d8a12 /setup.py | |
parent | 5daa2a8282add9bbc397d95cd4e5dcdf5fad85b8 (diff) |
Security audit - B411 #1025
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -41,7 +41,7 @@ def get_data_files(): def get_install_requires(): - requires = ['psutil>=5.3.0', 'future'] + requires = ['psutil>=5.3.0', 'defusedxml', 'future'] if sys.platform.startswith('win'): requires.append('bottle') requires.append('requests') @@ -60,7 +60,6 @@ def get_install_extras_require(): 'paho-mqtt', 'potsdb', 'prometheus_client', 'pyzmq', 'statsd'], 'folders': ['scandir'], # python_version<"3.5" - 'gpu': ['py3nvml'], 'graph': ['pygal'], 'ip': ['netifaces'], 'raid': ['pymdstat'], @@ -70,6 +69,10 @@ def get_install_extras_require(): 'web': ['bottle', 'requests'], 'wifi': ['wifi'] } + if PY3: + extras_require['export'].append('influxdb-client') + extras_require['gpu'] = ['py3nvml'] + # Add automatically the 'all' target extras_require.update({'all': [i[0] for i in extras_require.values()]}) |