diff mbox series

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

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

Commit Message

Antonin Godard Dec. 19, 2025, 10:35 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 | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/scripts/release-parser.py b/scripts/release-parser.py
index 61ff935..5993b30 100755
--- a/scripts/release-parser.py
+++ b/scripts/release-parser.py
@@ -10,6 +10,9 @@  from collections import defaultdict
 import datetime
 import semver
 
+CURRENT_ACTIVE_DEV_CODENAME = "Wrynose"
+CURRENT_ACTIVE_DEV_VERSION = "6.0"
+CURRENT_STABLE_BRANCH = "5.3"
 GIT_REPO = "~/git/mirror/yocto-docs"
 
 repo = Repo(GIT_REPO)
@@ -83,7 +86,7 @@  def get_git_tags():
             status = "LTS until Apr. 2026"
         if branch == "yocto-5.0":
             status = "LTS until Apr. 2028"
-        if branch == "yocto-5.3":
+        if branch == f"yocto-{CURRENT_STABLE_BRANCH}":
             status = "Stable Release until April 2026"
 
         # Create a dictionary for the series entry
@@ -108,12 +111,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": "",
     }