Fix: version number in filename for distribution. (#588)

Signed-off-by: dblock <[email protected]>
This commit is contained in:
Daniel (dB.) Doubrovkine
2023-11-15 15:03:06 -05:00
committed by GitHub
parent a0e8bd729d
commit 4874437fb5
2 changed files with 7 additions and 4 deletions
+3 -3
View File
@@ -194,7 +194,7 @@ def main() -> None:
if m:
version = m.group(1)
else:
raise Exception(f"Invalid version {data}")
raise Exception(f"Invalid version: {data}")
major_version = version.split(".")[0]
@@ -258,8 +258,8 @@ def main() -> None:
with open(version_path) as f:
version_data = f.read()
version_data = re.sub(
r"__versionstr__ = \"[^\"]+\"",
'__versionstr__ = "%s"' % version,
r"__versionstr__: str = \"[^\"]+\"",
'__versionstr__: str = "%s"' % version,
version_data,
)
with open(version_path, "w") as f: