Support legacy module version declarations
Dependency Audit / dependency-audit (push) Failing after 1m42s
Deployment Installer / deployment-installer (push) Successful in 6s
Security Audit / security-audit (push) Successful in 10m43s

This commit is contained in:
2026-08-04 15:08:46 +02:00
parent 492449a4e2
commit 774793976c
3 changed files with 15 additions and 6 deletions
+8 -1
View File
@@ -338,8 +338,15 @@ text, count = re.subn(
text,
count=1,
)
if count == 0:
text, count = re.subn(
r'(?ms)(^manifest\s*=\s*ModuleManifest\(.*?^\s*version\s*=\s*)["\'][^"\']+["\'](,?\s*)$',
rf'\1"{new_version}"\2',
text,
count=1,
)
if count != 1:
raise SystemExit(f"could not update MODULE_VERSION in {path}")
raise SystemExit(f"could not update module version declaration in {path}")
path.write_text(text)
PYCODE
done