1
0

Requirements files
Some checks failed
Python Package / Package (push) Failing after 22s

This commit is contained in:
Jon Michael Aanes 2024-04-01 15:15:53 +02:00
parent 4a69917d90
commit 19a6a9952f
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA
3 changed files with 7 additions and 3 deletions

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
requests

1
requirements_test.txt Normal file
View File

@ -0,0 +1 @@
pytest

View File

@ -15,8 +15,9 @@ with open(PACKAGE_NAME + '/_version.py') as f:
del match, text del match, text
def read_requirements(path: str): def read_requirements(path: str = 'requirements.txt'):
return f.read().strip().split('\n') with open(path) as f:
return f.read().strip().split('\n')
def get_short_description(readme: str): def get_short_description(readme: str):
@ -39,9 +40,10 @@ setup(
author_email='jonjmaa@gmail.com', author_email='jonjmaa@gmail.com',
url='https://gitfub.space/Jmaa/' + PACKAGE_NAME, url='https://gitfub.space/Jmaa/' + PACKAGE_NAME,
packages=[PACKAGE_NAME], packages=[PACKAGE_NAME],
install_requires=['requests'], install_requires=read_requirements(),
extras_require={ extras_require={
'Request ratelimiting': ['requests_ratelimiter'], 'Request ratelimiting': ['requests_ratelimiter'],
'Request caching': ['requests_cache'], 'Request caching': ['requests_cache'],
'test': read_requirements('requirements_test.txt'),
}, },
) )