diff --git a/crates/uv/tests/pip_sync.rs b/crates/uv/tests/pip_sync.rs index 8a686dbb8..2ab2d634a 100644 --- a/crates/uv/tests/pip_sync.rs +++ b/crates/uv/tests/pip_sync.rs @@ -671,15 +671,16 @@ fn install_sdist_url() -> Result<()> { fn install_sdist_archive_type_bz2() -> Result<()> { let context = TestContext::new("3.8"); - // Install a version of Twisted that uses `.tar.bz2`. let requirements_txt = context.temp_dir.child("requirements.txt"); - requirements_txt.write_str("Twisted==20.3.0")?; + requirements_txt.write_str("bz2==1.0.0")?; uv_snapshot!(command(&context) .arg("requirements.txt") .arg("--no-binary") .arg(":all:") - .arg("--strict"), @r###" + .arg("--strict") + .arg("--find-links") + .arg(context.workspace_root.join("scripts/links/")), @r###" success: true exit_code: 0 ----- stdout ----- @@ -688,14 +689,7 @@ fn install_sdist_archive_type_bz2() -> Result<()> { Resolved 1 package in [TIME] Downloaded 1 package in [TIME] Installed 1 package in [TIME] - + twisted==20.3.0 - warning: The package `twisted` requires `zope-interface>=4.4.2`, but it's not installed. - warning: The package `twisted` requires `constantly>=15.1`, but it's not installed. - warning: The package `twisted` requires `incremental>=16.10.1`, but it's not installed. - warning: The package `twisted` requires `automat>=0.3.0`, but it's not installed. - warning: The package `twisted` requires `hyperlink>=17.1.1`, but it's not installed. - warning: The package `twisted` requires `pyhamcrest!=1.10.0,>=1.9.0`, but it's not installed. - warning: The package `twisted` requires `attrs>=19.2.0`, but it's not installed. + + bz2==1.0.0 "### ); diff --git a/scripts/links/bz2-1.0.0.tar.bz2 b/scripts/links/bz2-1.0.0.tar.bz2 new file mode 100644 index 000000000..d780a1251 Binary files /dev/null and b/scripts/links/bz2-1.0.0.tar.bz2 differ