1
0

Compare commits

..

No commits in common. "944ced438845ce605bbf4f3a2cec56d354614536" and "5c50315a22eff3bd780f138c9601bbeb077212f5" have entirely different histories.

2 changed files with 20 additions and 12 deletions

View File

@ -1 +1 @@
__version__ = '0.1.22'
__version__ = '0.1.21'

View File

@ -32,15 +32,23 @@ with open(PACKAGE_NAME + '/_version.py') as f:
version = parse_version_file(f.read())
REQUIREMENTS_MAIN = [
'requests',
'ratelimit',
'wikidata',
]
REQUIREMENTS_TEST = [
'pytest',
'requests_cache',
]
def parse_requirements(text: str) -> list[str]:
return text.strip().split('\n')
def read_requirements(path: str) -> list[str]:
with open(path) as f:
return parse_requirements(f.read())
REQUIREMENTS_MAIN = """
requests
ratelimit
wikidata"""
REQUIREMENTS_TEST = """
pytest
requests_cache"""
setup(
@ -53,9 +61,9 @@ setup(
author_email='jonjmaa@gmail.com',
url='https://gitfub.space/Jmaa/' + PACKAGE_NAME,
packages=[PACKAGE_NAME],
install_requires=REQUIREMENTS_MAIN,
install_requires=parse_requirements(REQUIREMENTS_MAIN),
extras_require={
'test': REQUIREMENTS_TEST,
'test': parse_requirements(REQUIREMENTS_TEST),
},
python_requires='>=3.9',
)