1 parent 0935111 commit cd80983Copy full SHA for cd80983
1 file changed
.ci/scripts/calc_constraints.py
@@ -26,10 +26,14 @@
26
def fetch_pulpcore_upper_bound(requirement):
27
with urllib.request.urlopen(CORE_TEMPLATE_URL) as f:
28
template = yaml.safe_load(f.read())
29
- supported_versions = template["supported_release_branches"]
30
- supported_versions.append(template["latest_release_branch"])
+ supported_branches = [
+ *template["supported_release_branches"],
31
+ template["latest_release_branch"],
32
+ ]
33
applicable_versions = sorted(
- requirement.specifier.filter((Version(v) for v in supported_versions))
34
+ Version(branch)
35
+ for branch in supported_branches
36
+ if requirement.specifier.contains(Version(f"{branch}.999999"))
37
)
38
if len(applicable_versions) == 0:
39
raise Exception("No supported pulpcore version in required range.")
0 commit comments