from pathlib import Path import subprocess import datetime from .version import MAJOR, VERSION, RELEASE_NAME MANUAL = Path('doc/manual') RELEASE_NOTES_BASE = MANUAL / 'src/release-notes' VERSION_RL = RELEASE_NOTES_BASE / f'rl-{MAJOR}.md' SUMMARY = MANUAL / 'src/SUMMARY.md' def add_to_summary(date: str): # N.B: This kind of duplicates gitutils.is_maintenance_branch, but it's a more clear # check that allows potentially releasing a -rc without release notes being # moved, then in .0 actually move the release notes in place. if VERSION_RL.exists(): return MARKER = '