Add semantic release with automatic versioning, CHANGELOG, and VERSION file

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:
copilot-swe-agent[bot]
2026-03-29 10:29:29 +00:00
parent f686e854cb
commit 630be30a82
11 changed files with 192 additions and 108 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env python3
"""Sync the VERSION file from pyproject.toml after a version bump."""
import re
from pathlib import Path
root = Path(__file__).resolve().parent.parent
toml_content = (root / "pyproject.toml").read_text()
match = re.search(
r'^\[project\]\s*\n(?:.*\n)*?version\s*=\s*"([^"]+)"',
toml_content,
re.MULTILINE,
)
if match:
version = match.group(1)
(root / "VERSION").write_text(version + "\n")