From 5130fc6f17f5c18d8743901cfe752c33c5bc52c8 Mon Sep 17 00:00:00 2001 From: David Adam Date: Sat, 29 Nov 2025 00:05:24 +0800 Subject: [PATCH] build_tools: add script to get supported Ubuntu versions --- build_tools/supported_ubuntu_versions.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 build_tools/supported_ubuntu_versions.py diff --git a/build_tools/supported_ubuntu_versions.py b/build_tools/supported_ubuntu_versions.py new file mode 100755 index 000000000..3cae48204 --- /dev/null +++ b/build_tools/supported_ubuntu_versions.py @@ -0,0 +1,22 @@ +# /// script +# requires-python = ">=3.5" +# dependencies = [ +# "launchpadlib", +# ] +# /// + +from launchpadlib.launchpad import Launchpad + +if __name__ == "__main__": + launchpad = Launchpad.login_anonymously( + "fish shell build script", "production", "~/.cache", version="devel" + ) + ubu = launchpad.projects("ubuntu") + print( + "\n".join( + x["name"] + for x in ubu.series.entries + if x["supported"] == True + and x["name"] not in ("trusty", "xenial", "bionic", "focal") + ) + )