setup.py: dynamically pull dependencies from requirements.txt

This commit is contained in:
Luke Tainton 2022-06-25 22:08:48 +01:00
parent 117470feb0
commit 10bb540d3d
No known key found for this signature in database
GPG Key ID: ABEE10849773E353

View File

@ -6,6 +6,13 @@ from setuptools import setup
from app._version import VERSION from app._version import VERSION
dependencies = []
with open("requirements.txt", "r") as dep_file:
for dep_line in dep_file.readlines():
dependencies.append(dep_line.replace("\n", ""))
setup( setup(
name="ipilot", name="ipilot",
version=VERSION, version=VERSION,
@ -13,7 +20,7 @@ setup(
author="Luke Tainton", author="Luke Tainton",
author_email="luke@tainton.uk", author_email="luke@tainton.uk",
packages=["app"], packages=["app"],
install_requires=["requests"], install_requires=dependencies,
entry_points={ entry_points={
"console_scripts": [ "console_scripts": [
"ipilot = app.main:main", "ipilot = app.main:main",