@@ -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": "",
}
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(-)