This commit is contained in:
parent
4a69917d90
commit
19a6a9952f
1
requirements.txt
Normal file
1
requirements.txt
Normal file
|
@ -0,0 +1 @@
|
|||
requests
|
1
requirements_test.txt
Normal file
1
requirements_test.txt
Normal file
|
@ -0,0 +1 @@
|
|||
pytest
|
8
setup.py
8
setup.py
|
@ -15,8 +15,9 @@ with open(PACKAGE_NAME + '/_version.py') as f:
|
|||
del match, text
|
||||
|
||||
|
||||
def read_requirements(path: str):
|
||||
return f.read().strip().split('\n')
|
||||
def read_requirements(path: str = 'requirements.txt'):
|
||||
with open(path) as f:
|
||||
return f.read().strip().split('\n')
|
||||
|
||||
|
||||
def get_short_description(readme: str):
|
||||
|
@ -39,9 +40,10 @@ setup(
|
|||
author_email='jonjmaa@gmail.com',
|
||||
url='https://gitfub.space/Jmaa/' + PACKAGE_NAME,
|
||||
packages=[PACKAGE_NAME],
|
||||
install_requires=['requests'],
|
||||
install_requires=read_requirements(),
|
||||
extras_require={
|
||||
'Request ratelimiting': ['requests_ratelimiter'],
|
||||
'Request caching': ['requests_cache'],
|
||||
'test': read_requirements('requirements_test.txt'),
|
||||
},
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user