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
|
6
setup.py
6
setup.py
|
@ -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'),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user