From d8c2c183bf3869275eacef6c89ba35f9cc55d431 Mon Sep 17 00:00:00 2001 From: daniel-rdt Date: Thu, 2 Jul 2026 18:36:42 +0200 Subject: [PATCH 1/3] fix: add missing regular expression anchors with re.fullmatch --- utils/create_zenodo_deposition_cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/create_zenodo_deposition_cli.py b/utils/create_zenodo_deposition_cli.py index ebfc404b23..526eec211f 100644 --- a/utils/create_zenodo_deposition_cli.py +++ b/utils/create_zenodo_deposition_cli.py @@ -428,8 +428,8 @@ def extract_zenodo_deposition_url(record_url: str) -> tuple[str, str]: The Zenodo deposition API URL, or None if extraction fails. """ # Match both sandbox and production, with or without /files/... - m = re.match( - r"https://(?:sandbox\.)?zenodo\.org/records/(\d+)(/files/.*)?", record_url + m = re.fullmatch( + r"https://(?:sandbox\.)?zenodo\.org/records/(\d+)(/files(/.*)?)?", record_url ) if not m: raise ValueError(f"Invalid Zenodo record URL format: {record_url}. ") From 86a59e4c6608a6977855228efda4c01aebb26407 Mon Sep 17 00:00:00 2001 From: daniel-rdt Date: Thu, 2 Jul 2026 19:06:29 +0200 Subject: [PATCH 2/3] doc: add release note --- doc/release_notes.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/release_notes.rst b/doc/release_notes.rst index 05c2ce4933..17d8467273 100644 --- a/doc/release_notes.rst +++ b/doc/release_notes.rst @@ -35,6 +35,8 @@ Upcoming Open-TYNDP Release **Bugfixes and Compatibility** +* Add missing regex anchors with ``re.fullmatch`` to ``create_zenodo_deposition_cli`` utils script (https://github.com/open-energy-transition/open-tyndp/pull/778). + **Documentation** * Update benchmarking documentation tables and figures for v0.7.1 (https://github.com/open-energy-transition/open-tyndp/pull/711). From ca5698cfe5e8e5f72af1b5c6f1a1f9f8e1abbeeb Mon Sep 17 00:00:00 2001 From: daniel-rdt Date: Mon, 6 Jul 2026 16:15:34 +0200 Subject: [PATCH 3/3] doc: fix release note syntax --- doc/release_notes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/release_notes.md b/doc/release_notes.md index 02cbd9d2b8..99cf9b6057 100644 --- a/doc/release_notes.md +++ b/doc/release_notes.md @@ -43,7 +43,7 @@ * Introduce SBOM/Grype vulnerability scanning workflow, as a follow-up to the [upstream addition](https://github.com/PyPSA/pypsa-eur/pull/2164) ([754](https://github.com/open-energy-transition/open-tyndp/pull/754)). -* Add missing regex anchors with ``re.fullmatch`` to ``create_zenodo_deposition_cli`` utils script ([778](https://github.com/open-energy-transition/open-tyndp/pull/778)). +* Add missing regex anchors with `re.fullmatch` to `create_zenodo_deposition_cli` utils script ([778](https://github.com/open-energy-transition/open-tyndp/pull/778)). ## Upcoming PyPSA-Eur Release