From 0290fc95735b9a1dd5c43798e25162bda76b7d5b Mon Sep 17 00:00:00 2001 From: Ronnie Villanueva Date: Sun, 5 Nov 2023 21:26:28 +0800 Subject: [PATCH] build(pyproject.toml,setup.py): update requirements --- pyproject.toml | 8 ++++---- setup.py | 8 -------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 720dfa4..241e0f5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [project] name = "pyplayht" version = "0.0.0" -dependencies = [ - "python-dotenv >= 0.20.0", - "requests >= 2.28.2", -] +dynamic = ["dependencies"] + +[tool.setuptools.dynamic] +dependencies = {file = ["requirements.txt"]} [tool.pytest.ini_options] pythonpath = [ diff --git a/setup.py b/setup.py index 6c1afae..3647bac 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,6 @@ -from pathlib import Path - from setuptools import find_packages, setup -requirements = Path("requirements.txt").read_text().split("\n") - setup( packages=find_packages(where="src"), package_dir={"": "src"}, - install_requires=[ - # Add your dependencies here - *requirements - ], )