1
0

Compare commits

...

4 Commits

Author SHA1 Message Date
6369804b3f 🤖 Bumped version to 0.1.51
Some checks failed
Run Python tests (through Pytest) / Test (push) Waiting to run
Verify Python project can be installed, loaded and have version checked / Test (push) Waiting to run
Python Ruff Code Quality / ruff (push) Has been cancelled
This commit was automatically generated by [a script](https://gitfub.space/Jmaa/repo-manager)
2025-05-21 00:56:14 +02:00
00abe85282 🤖 Repository layout updated to latest version
This commit was automatically generated by [a script](https://gitfub.space/Jmaa/repo-manager)
2025-05-21 00:56:14 +02:00
055a1a302e 🤖 Repository layout updated to latest version
This commit was automatically generated by [a script](https://gitfub.space/Jmaa/repo-manager)
2025-05-21 00:56:14 +02:00
7c76ece99a 🤖 Repository layout updated to latest version
This commit was automatically generated by [a script](https://gitfub.space/Jmaa/repo-manager)
2025-05-21 00:56:14 +02:00
2 changed files with 3 additions and 4 deletions

View File

@ -1 +1 @@
__version__ = '0.1.50'
__version__ = '0.1.51'

View File

@ -30,15 +30,14 @@ Defined hierarchy:
PACKAGE_DESCRIPTION_SHORT = """
Python library defining base types for financial processing.""".strip()
def parse_version_file(text: str) -> str:
match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
text = re.sub('^#.*', '', text, flags=re.MULTILINE)
match = re.match(r'^\s*__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
if match is None:
msg = 'Malformed _version.py file!'
raise Exception(msg)
return match.group(2)
with open(PACKAGE_NAME + '/_version.py') as f:
version = parse_version_file(f.read())