From f262e1ab147ce192ef4c77bde1b9b04e530b57df Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Tue, 29 Oct 2024 07:18:39 -0500 Subject: [PATCH] nox pip-compile: temporarily pin pip version Relates: https://github.com/ansible/ansible-documentation/pull/1950#issuecomment-2443949725 Relates: https://github.com/jazzband/pip-tools/issues/2131 --- noxfile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index d9192fd6fca..e988a71c2dc 100644 --- a/noxfile.py +++ b/noxfile.py @@ -158,7 +158,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)