diff mbox series

[yocto-autobuilder-helper,v2,3/9] scripts/release-parser.py: define globals for stable/active versions

Message ID 20260123-releases-parser-updates-v2-3-c24c30da807b@bootlin.com
State New
Headers show
Series scripts/release-parser.py: update and move from poky | expand

Commit Message

Antonin Godard Jan. 23, 2026, 8:59 a.m. UTC
To avoid forgetting a spot where the we need to update this information,
define it at the top of the file and use it in the code below.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 scripts/release-parser.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/scripts/release-parser.py b/scripts/release-parser.py
index e882569..33c5fe7 100755
--- a/scripts/release-parser.py
+++ b/scripts/release-parser.py
@@ -17,6 +17,9 @@  SUPPORTED_RELEASES = {
      "yocto-5.0": "LTS until Apr. 2028",
      "yocto-5.3": "Stable Release until Apr. 2026",
 }
+CURRENT_ACTIVE_DEV_CODENAME = "Wrynose"
+CURRENT_ACTIVE_DEV_VERSION = "6.0"
+CURRENT_STABLE_BRANCH = "5.3"
 
 repo = Repo(GIT_REPO)
 
@@ -109,12 +112,12 @@  tags = sorted(get_git_tags(), key=lambda x: x["original_release_date"], reverse=
 
 tags.append(
     {
-        "series_version": "6.0",
+        "series_version": CURRENT_ACTIVE_DEV_VERSION,
         "original_release_date": "",
         "latest_release_date": "",
-        "release_codename": "Wrynose",
+        "release_codename": CURRENT_ACTIVE_DEV_CODENAME,
         "latest_tag": "",
-        "releases" : list(e.name for e in filter(lambda e: e.name.startswith("6.0"), repo.tags)),
+        "releases" : list(e.name for e in filter(lambda e: e.name.startswith(CURRENT_ACTIVE_DEV_VERSION), repo.tags)),
         "status": "Active Development",
         "download": "",
     }