1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
6c55817e4a 🤖 Bumped version to 0.1.8
All checks were successful
Package Python / Package (push) Successful in 22s
Test Python / Test (push) Successful in 20s
This commit was automatically generated by a script: https://gitfub.space/Jmaa/python-omni
2024-06-03 22:38:08 +02:00
5a0cfbf9ed 🤖 Repository layout updated to latest Python version
This commit was automatically generated by a script: https://gitfub.space/Jmaa/python-omni
2024-06-03 22:37:41 +02:00
2 changed files with 4 additions and 1 deletions

View File

@ -1 +1 @@
__version__ = '0.1.7' __version__ = '0.1.8'

View File

@ -15,6 +15,7 @@ PACKAGE_NAME = 'pbcabi'
with open('README.md') as f: with open('README.md') as f:
readme = f.read() readme = f.read()
def parse_version_file(text: str) -> str: def parse_version_file(text: str) -> str:
match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text) match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
if match is None: if match is None:
@ -22,9 +23,11 @@ def parse_version_file(text: str) -> str:
raise Exception(msg) raise Exception(msg)
return match.group(2) return match.group(2)
with open(PACKAGE_NAME + '/_version.py') as f: 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]: def parse_requirements(text: str) -> list[str]:
return text.strip().split('\n') return text.strip().split('\n')