Dynamically generate install_requires through requirements.txt.

This commit is contained in:
Fabio Manganiello 2024-07-18 00:04:04 +02:00
parent fabcba14d9
commit 4d39791569
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774
2 changed files with 3 additions and 19 deletions

View file

@ -8,7 +8,6 @@ docutils
flask flask
marshmallow marshmallow
marshmallow_dataclass marshmallow_dataclass
paho-mqtt
psutil psutil
python-dateutil python-dateutil
python-magic python-magic

View file

@ -104,24 +104,9 @@ setup(
"Development Status :: 4 - Beta", "Development Status :: 4 - Beta",
], ],
install_requires=[ install_requires=[
'alembic', line.split('#')[0].strip()
'croniter', for line in readfile('requirements.txt').splitlines()
'docutils', if line.strip().split('#')[0].strip()
'flask',
'marshmallow',
'marshmallow_dataclass',
'psutil',
'python-dateutil',
'python-magic',
'pyyaml',
'redis',
'requests',
'rsa',
'sqlalchemy',
'tornado',
'websocket-client',
'websockets',
'zeroconf>=0.27.0',
], ],
extras_require=parse_manifests(), extras_require=parse_manifests(),
) )