1
0

🤖 Repository layout updated to latest version

This commit was automatically generated by a script: https://gitfub.space/Jmaa/python-omni
This commit is contained in:
Takunomi Automaticus, The 2nd 2024-08-08 18:20:19 +02:00
parent 5c50315a22
commit 2ec582dc75

View File

@ -32,23 +32,15 @@ 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',
'ratelimit',
'wikidata',
def read_requirements(path: str) -> list[str]: ]
with open(path) as f: REQUIREMENTS_TEST = [
return parse_requirements(f.read()) 'pytest',
'requests_cache',
]
REQUIREMENTS_MAIN = """
requests
ratelimit
wikidata"""
REQUIREMENTS_TEST = """
pytest
requests_cache"""
setup( setup(
@ -61,9 +53,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',
) )