From e889d0704657971d0f735e2f42cbdf3f001c6957 Mon Sep 17 00:00:00 2001 From: pulpbot Date: Thu, 17 Sep 2026 13:14:25 +0000 Subject: [PATCH] Update CI files --- .ci/scripts/calc_constraints.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.ci/scripts/calc_constraints.py b/.ci/scripts/calc_constraints.py index 83e197aa..4b60a810 100755 --- a/.ci/scripts/calc_constraints.py +++ b/.ci/scripts/calc_constraints.py @@ -26,10 +26,14 @@ def fetch_pulpcore_upper_bound(requirement): with urllib.request.urlopen(CORE_TEMPLATE_URL) as f: template = yaml.safe_load(f.read()) - supported_versions = template["supported_release_branches"] - supported_versions.append(template["latest_release_branch"]) + supported_branches = [ + *template["supported_release_branches"], + template["latest_release_branch"], + ] applicable_versions = sorted( - requirement.specifier.filter((Version(v) for v in supported_versions)) + Version(branch) + for branch in supported_branches + if requirement.specifier.contains(Version(f"{branch}.999999")) ) if len(applicable_versions) == 0: raise Exception("No supported pulpcore version in required range.")