You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by ar...@apache.org on 2026/06/26 11:31:32 UTC
(tooling-trusted-releases) 02/04: #478 - remove attic- prefix from project keys
This is an automated email from the ASF dual-hosted git repository.
alitheg pushed a commit to branch arm
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
commit 5ed0583b781451cb947a480aa80d8cc897762c94
Author: Alastair McFarlane <ar...@apache.org>
AuthorDate: Thu Jun 25 15:21:54 2026 +0100
#478 - remove attic- prefix from project keys
---
atr/datasources/apache.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/atr/datasources/apache.py b/atr/datasources/apache.py
index 1843c7bc..ceff20ed 100644
--- a/atr/datasources/apache.py
+++ b/atr/datasources/apache.py
@@ -575,10 +575,12 @@ _DORMANT_RE: Final[re.Pattern[str]] = re.compile(r"_+dormant_*$")
def canonical_project_key(key: str) -> str:
- # Tidy a projects.json key into an ATR project key: the webservices PMC ships
+ # Tidy a projects.json key into an ATR project key: the attic- prefix comes off
+ # (the Attic is a steward committee, not part of the key), the webservices PMC ships
# under its full name, underscores become hyphens, the dormant marker comes off
# (it's status), and Xerces uses shorter keys. Shared with the catalogue script
# so its seed keys line up with what the registry sync creates.
+ key = key.removeprefix("attic-")
key = key.replace("webservices-", "ws-")
key = _DORMANT_RE.sub("", key)
key = key.replace("_", "-")
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org