From 1d6e1bd5b4b25ea031382171383c20a054e9fc93 Mon Sep 17 00:00:00 2001 From: konsti Date: Tue, 8 Oct 2024 17:16:08 +0200 Subject: [PATCH] Fix merge problem with main (#8005) --- crates/uv-build-backend/src/lib.rs | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/crates/uv-build-backend/src/lib.rs b/crates/uv-build-backend/src/lib.rs index 8c0d6c15a285..5e30446e0ab5 100644 --- a/crates/uv-build-backend/src/lib.rs +++ b/crates/uv-build-backend/src/lib.rs @@ -543,17 +543,22 @@ mod tests { .path() .join("uv_backend-0.1.0.dist-info/RECORD"); assert_snapshot!(fs_err::read_to_string(record_file).unwrap(), @r###" - uv_backend-0.1.0.dist-info/WHEEL,sha256=ceadf23bfd935cd041de3c60b6349f8ee52b8832338222497e809a923d3cba0a,79 + uv_backend-0.1.0.dist-info/WHEEL,sha256=3ab9e610d443a2f26ac5392439f8a7a71c00f181a8df237b7104768ac54c5214,79 uv_backend-0.1.0.dist-info/METADATA,sha256=e4a0d390317d7182f65ea978254c71ed283e0a4242150cf1c99a694b113ff68d,224 uv_backend-0.1.0.dist-info/RECORD,, "###); let wheel_file = metadata_dir.path().join("uv_backend-0.1.0.dist-info/WHEEL"); - assert_snapshot!(fs_err::read_to_string(wheel_file).unwrap(), @r###" - Wheel-Version: 1.0 - Generator: uv 0.4.18 - Root-Is-Purelib: true - Tag: py3-none-any - "###); + let filters = vec![(uv_version::version(), "[VERSION]")]; + with_settings!({ + filters => filters + }, { + assert_snapshot!(fs_err::read_to_string(wheel_file).unwrap(), @r###" + Wheel-Version: 1.0 + Generator: uv [VERSION] + Root-Is-Purelib: true + Tag: py3-none-any + "###); + }); } }