From 7758eb8d3d2f5f1f91a94479817dec12a2f90ff4 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Tue, 29 Oct 2024 18:36:07 +0100 Subject: [PATCH] nox pip-compile: temporarily pin pip version (#2085) (#2087) Relates: https://github.com/ansible/ansible-documentation/pull/1950#issuecomment-2443949725 Relates: https://github.com/jazzband/pip-tools/issues/2131 (cherry picked from commit ef750f6dcfaef612ac381f1c046dc3fea2f870c5) Co-authored-by: Maxwell G --- noxfile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index f3e42c09582..2d6801e5616 100644 --- a/noxfile.py +++ b/noxfile.py @@ -157,7 +157,9 @@ def lint(session: nox.Session): @nox.parametrize(["req"], requirements_files, requirements_files) def pip_compile(session: nox.Session, req: str): # .pip-tools.toml was introduced in v7 - session.install("pip-tools >= 7") + # pip 24.3 causes a regression in pip-compile. + # See https://github.com/jazzband/pip-tools/issues/2131. + session.install("pip-tools >= 7", "pip < 24.3") # Use --upgrade by default unless a user passes -P. args = list(session.posargs)