Correct issue with deps in Pypi

This commit is contained in:
nicolargo 2024-05-12 18:26:26 +02:00
parent d9056e6027
commit 147f8a4de4
1 changed files with 9 additions and 7 deletions

View File

@ -8,6 +8,11 @@ from io import open
from setuptools import setup, Command
# Predication warning
# Glances version 4 will only be compatible with Python 3.7 and above
if sys.version_info < (3, 7):
print('WARNING: Glances version 4 will only be compatible with Python 3.7 and above.')
if sys.version_info < (3, 8):
print('Glances requires at least Python 3.8 to run.')
sys.exit(1)
@ -34,14 +39,11 @@ def get_data_files():
return data_files
with open('requirements.txt') as f:
required = f.read().splitlines()
def get_install_requires():
requires = [
'psutil>=5.6.7',
'defusedxml',
'packaging',
'ujson>=5.4.0',
]
requires = required
if sys.platform.startswith('win'):
requires.append('fastapi')
requires.append('uvicorn')
@ -54,7 +56,7 @@ def get_install_requires():
def get_install_extras_require():
extras_require = {
'action': ['chevron'],
'browser': ['zeroconf==0.131.0'],
'browser': ['zeroconf>=0.19.1'],
'cloud': ['requests'],
'containers': ['docker>=6.1.1', 'python-dateutil', 'six', 'podman', 'packaging'],
'export': ['bernhard', 'cassandra-driver', 'elasticsearch', 'graphitesender',