From c699752bfe529ab77b92cb4e5737ceb387036de4 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Tue, 29 Oct 2024 18:31:52 +0100 Subject: [PATCH] nox pip-compile: temporarily pin pip version (#2085) (#2086) 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 b056e70eb82..b8bc73bd3db 100644 --- a/noxfile.py +++ b/noxfile.py @@ -110,7 +110,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)