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