| 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 |
Hi Antonin, On 12/19/25 11:35 AM, Antonin Godard via lists.yoctoproject.org wrote: > 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 --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" Factor out April 2026 as well so it isn't forgotten? Also, what's going to happen once we have Wrynose out? It's an LTS (it IS technically a stable release, but I'm assuming we don't want to be saying that?). How about something like: """ # Dict with key=<yocto-branch>, value="LTS until <date>" or value="Stable Release until <date>" SUPPORTED_RELEASES = { "yocto-4.0": "LTS until Apr. 2026", "yocto-5.0": "LTS until Apr. 2028", "yocto-5.3": "Stable Release until Apr. 2026", } [...] status = SUPPORTED_RELEASES.get(branch, "EOL") """ Cheers, Quentin
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": "", }
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(-)