From 413859768d263676a7541a774267b9f88c084b26 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Wed, 24 Apr 2024 23:45:23 -0400 Subject: [PATCH] Replace Twisted with an empty bz2 package (#3258) ## Summary This is just an empty package taken from packse, rezipped with `tar -cjf bz2-1.0.0.tar.bz2 bz2-1.0.0`. --- crates/uv/tests/pip_sync.rs | 16 +++++----------- scripts/links/bz2-1.0.0.tar.bz2 | Bin 0 -> 586 bytes 2 files changed, 5 insertions(+), 11 deletions(-) create mode 100644 scripts/links/bz2-1.0.0.tar.bz2 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 0000000000000000000000000000000000000000..d780a1251e416e3a5559a7b3c977967415ddfea0 GIT binary patch literal 586 zcmV-Q0=4}@T4*^jL0KkKS@uu$>Hq=m|C!d10)S8x|I-QY(F*_n|F8rA1b_et00=+= zJW%PN8YMkL)b%|;GJ1eA0009(13)>WCMEzTBLXzQgAsycz#|A19*Af(G&Bq#41fdF z3?m_gQXpz#08?o_MuvmbG-;-WfB-#DTJ>V&i-Js!V)Mh<c~Yc9L?C zCsK4OiR4neEtqrQ_)Z^gpEIjnnQtp{tz17JNrCsF+L{=zN2E4(_Gyu~W}}b$XBo(- z>-i*SJ+NvdM*jluXWUBvvnV)flGdAHBV@RurC@-q2lr4kLG1wJLXqf+(kB7O4_&Ez zB+l_JFliu-$-9*DRX~gEbY;)}Z##M>Zql5kmsNV&T88?Ip@w-ZWMfg12!h#~@=k|~ znk}WKp7zU}%dIWEqfwv^<0Z8W#29E(4nhilSG2lw;^(s*CN2cRR+Z%|(pqwGPA?VL Yw(46B5$U2m0w3{rBvXY64`lydphE!%*#H0l literal 0 HcmV?d00001