From 7ab64ce5c1dfaab8ac6e43199bb15e7e6aca6c4b Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Mon, 1 Apr 2024 15:20:36 +0200 Subject: [PATCH] Revert requirements files. Not allowed for python package --- requirements.txt | 1 - requirements_test.txt | 1 - setup.py | 9 ++------- 3 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 requirements.txt delete mode 100644 requirements_test.txt diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index f229360..0000000 --- a/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -requests diff --git a/requirements_test.txt b/requirements_test.txt deleted file mode 100644 index e079f8a..0000000 --- a/requirements_test.txt +++ /dev/null @@ -1 +0,0 @@ -pytest diff --git a/setup.py b/setup.py index 9c59985..f84c8de 100644 --- a/setup.py +++ b/setup.py @@ -15,11 +15,6 @@ with open(PACKAGE_NAME + '/_version.py') as f: del match, text -def read_requirements(path: str = 'requirements.txt'): - with open(path) as f: - return f.read().strip().split('\n') - - def get_short_description(readme: str): readme = re.sub(r'#+[^\n]*\n+', '', readme) m = re.search(r'^\s*(\w+[\w\s,`]+\.)', readme) @@ -40,10 +35,10 @@ setup( author_email='jonjmaa@gmail.com', url='https://gitfub.space/Jmaa/' + PACKAGE_NAME, packages=[PACKAGE_NAME], - install_requires=read_requirements(), + install_requires=['requests'], extras_require={ 'Request ratelimiting': ['requests_ratelimiter'], 'Request caching': ['requests_cache'], - 'test': read_requirements('requirements_test.txt'), + 'test': ['pytest'], }, )