diff --git a/templates/github/.ci/scripts/calc_constraints.py.j2 b/templates/github/.ci/scripts/calc_constraints.py.j2 index fbe2a422..77253a95 100644 --- a/templates/github/.ci/scripts/calc_constraints.py.j2 +++ b/templates/github/.ci/scripts/calc_constraints.py.j2 @@ -58,7 +58,7 @@ def to_upper_bound(req): elif version.minor != 0: max_version = f"{version.major}.{version.minor-1}" elif version.major != 0: - max_version = f"{version.major-1}" + max_version = f"{version.major-1}.0" else: return f"# NO BETTER CONSTRAINT: {req}" return f"{requirement.name}{operator}{max_version}"