From 4778897f12dfa944f46846ed854df631817c1278 Mon Sep 17 00:00:00 2001 From: pulpbot Date: Tue, 8 Jul 2025 15:22:24 +0000 Subject: [PATCH] Update CI files --- .ci/scripts/calc_constraints.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.ci/scripts/calc_constraints.py b/.ci/scripts/calc_constraints.py index 93ee2cc7..66c494e9 100755 --- a/.ci/scripts/calc_constraints.py +++ b/.ci/scripts/calc_constraints.py @@ -53,6 +53,9 @@ def to_upper_bound(req): if requirement.name == "pulpcore": # An exception to allow for pulpcore deprecation policy. return fetch_pulpcore_upper_bound(requirement) + # skip requirement with environment scopes. E.g 'foo==1.0.0;python_version>=3.9' + if requirement.marker: + return f"# ENVIRONMENT IS UNTRACKABLE: {req}" for spec in requirement.specifier: if spec.operator == "~=": return f"# NO BETTER CONSTRAINT: {req}"