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") + ) + )