1
0

Revert requirements files. Not allowed for python package
All checks were successful
Python Package / Package (push) Successful in 23s

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

View File

@ -1 +0,0 @@
requests

View File

@ -1 +0,0 @@
pytest

View File

@ -15,11 +15,6 @@ with open(PACKAGE_NAME + '/_version.py') as f:
del match, text 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): def get_short_description(readme: str):
readme = re.sub(r'#+[^\n]*\n+', '', readme) readme = re.sub(r'#+[^\n]*\n+', '', readme)
m = re.search(r'^\s*(\w+[\w\s,`]+\.)', readme) m = re.search(r'^\s*(\w+[\w\s,`]+\.)', readme)
@ -40,10 +35,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=read_requirements(), install_requires=['requests'],
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'), 'test': ['pytest'],
}, },
) )