From 7978492122e248040c959cdcc2b039c9b362d5d9 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sun, 10 Mar 2024 06:50:19 -0700 Subject: [PATCH] Update `install_extra_index_url_has_priority` to avoid packaging breakage (#2337) `packaging==24.0` came out which broke this test. It has to run without `--exclude-newer` since it's testing an index that doesn't support it. Instead, though, we can just disable dependencies, since the test still exercises the same logic. --- crates/uv/tests/pip_install.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/crates/uv/tests/pip_install.rs b/crates/uv/tests/pip_install.rs index e57d53865..a56e0fe7c 100644 --- a/crates/uv/tests/pip_install.rs +++ b/crates/uv/tests/pip_install.rs @@ -856,6 +856,7 @@ fn install_extra_index_url_has_priority() { // the fix, `uv` will check pypi.org first since it is given // priority via --extra-index-url. .arg("black==24.2.0") + .arg("--no-deps") .arg("--exclude-newer") .arg("2024-03-09"), @r###" success: true @@ -863,15 +864,10 @@ fn install_extra_index_url_has_priority() { ----- stdout ----- ----- stderr ----- - Resolved 6 packages in [TIME] - Downloaded 6 packages in [TIME] - Installed 6 packages in [TIME] + Resolved 1 package in [TIME] + Downloaded 1 package in [TIME] + Installed 1 package in [TIME] + black==24.2.0 - + click==8.1.7 - + mypy-extensions==1.0.0 - + packaging==23.2 - + pathspec==0.12.1 - + platformdirs==4.2.0 "### );