Address review feedback: add error handling to sync_version.py, fix ROADMAP refs in issues.json
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/00a0c62f-f046-4f73-9c6a-79073906264c Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Sync the VERSION file from pyproject.toml after a version bump."""
|
||||
import re
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
root = Path(__file__).resolve().parent.parent
|
||||
@@ -14,3 +15,6 @@ match = re.search(
|
||||
if match:
|
||||
version = match.group(1)
|
||||
(root / "VERSION").write_text(version + "\n")
|
||||
else:
|
||||
print("ERROR: Could not find version in pyproject.toml [project] section", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user