Compare commits
2 Commits
d6fe9b76d7
...
386d639993
Author | SHA1 | Date | |
---|---|---|---|
386d639993 | |||
8264fd61d1 |
|
@ -1 +1 @@
|
||||||
__version__ = '0.1.18'
|
__version__ = '0.1.19'
|
||||||
|
|
28
setup.py
28
setup.py
|
@ -38,22 +38,14 @@ with open(PACKAGE_NAME + '/_version.py') as f:
|
||||||
version = parse_version_file(f.read())
|
version = parse_version_file(f.read())
|
||||||
|
|
||||||
|
|
||||||
def parse_requirements(text: str) -> list[str]:
|
REQUIREMENTS_MAIN = [
|
||||||
return text.strip().split('\n')
|
'requests',
|
||||||
|
'requests_ratelimiter',
|
||||||
|
'requests_cache',
|
||||||
def read_requirements(path: str) -> list[str]:
|
]
|
||||||
with open(path) as f:
|
REQUIREMENTS_TEST = [
|
||||||
return parse_requirements(f.read())
|
'pytest',
|
||||||
|
]
|
||||||
|
|
||||||
REQUIREMENTS_MAIN = """
|
|
||||||
requests
|
|
||||||
requests_ratelimiter
|
|
||||||
requests_cache"""
|
|
||||||
|
|
||||||
REQUIREMENTS_TEST = """
|
|
||||||
pytest"""
|
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
|
@ -66,9 +58,9 @@ 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=parse_requirements(REQUIREMENTS_MAIN),
|
install_requires=REQUIREMENTS_MAIN,
|
||||||
extras_require={
|
extras_require={
|
||||||
'test': parse_requirements(REQUIREMENTS_TEST),
|
'test': REQUIREMENTS_TEST,
|
||||||
},
|
},
|
||||||
python_requires='>=3.9',
|
python_requires='>=3.9',
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user