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,7 +15,8 @@ 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'):
with open(path) as f:
return f.read().strip().split('\n') return f.read().strip().split('\n')
@ -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'),
}, },
) )