🤖 Repository layout updated to latest version
Some checks failed
Run Python tests (through Pytest) / Test (push) Failing after 28s
Verify Python project can be installed, loaded and have version checked / Test (push) Failing after 26s

This commit was automatically generated by [a script](https://gitfub.space/Jmaa/repo-manager)
This commit is contained in:
Takunomi Automaticus, The 2nd 2025-05-21 00:48:53 +02:00
parent 792f9f2fc6
commit 3d6c45f2b4

View File

@ -15,7 +15,7 @@ PACKAGE_DESCRIPTION_SHORT = """
""".strip()
def parse_version_file(text: str) -> str:
text = re.sub('^#.*$', '', 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!'