@@ -499,7 +499,7 @@ mod tests {
499499 use uv_preview:: PreviewFeature ;
500500 use uv_static:: TarBackend ;
501501
502- use crate :: source_dist:: { SyncReader , build_source_dist_with_backend } ;
502+ use crate :: source_dist:: SyncReader ;
503503
504504 const MOCK_UV_VERSION : & str = "1.0.0+test" ;
505505
@@ -570,7 +570,7 @@ mod tests {
570570 // normalize the path.
571571 let ( _name, wheel_list_files) = list_wheel ( source_root, MOCK_UV_VERSION , false ) ?;
572572 let source_dist_filename =
573- build_source_dist_with_backend ( source_root, dist, MOCK_UV_VERSION , false , tar_backend) ?;
573+ build_source_dist ( source_root, dist, MOCK_UV_VERSION , false , tar_backend) ?;
574574 let source_dist_path = dist. join ( source_dist_filename. to_string ( ) ) ;
575575 let source_dist_contents = sdist_contents ( & source_dist_path) ;
576576
@@ -1001,7 +1001,14 @@ mod tests {
10011001
10021002 // Build a wheel from a source distribution
10031003 let output_dir = TempDir :: new ( ) . unwrap ( ) ;
1004- build_source_dist ( src. path ( ) , output_dir. path ( ) , "0.5.15" , false ) . unwrap ( ) ;
1004+ build_source_dist (
1005+ src. path ( ) ,
1006+ output_dir. path ( ) ,
1007+ "0.5.15" ,
1008+ false ,
1009+ TarBackend :: default ( ) ,
1010+ )
1011+ . unwrap ( ) ;
10051012 let sdist_tree = TempDir :: new ( ) . unwrap ( ) ;
10061013 let source_dist_path = output_dir. path ( ) . join ( "pep_pep639_license-1.0.0.tar.gz" ) ;
10071014 unpack_sdist ( & source_dist_path, sdist_tree. path ( ) ) . unwrap ( ) ;
@@ -1232,7 +1239,13 @@ mod tests {
12321239 let dist = TempDir :: new ( ) . unwrap ( ) ;
12331240
12341241 // Source dist build should fail
1235- let sdist_result = build_source_dist ( src. path ( ) , dist. path ( ) , MOCK_UV_VERSION , false ) ;
1242+ let sdist_result = build_source_dist (
1243+ src. path ( ) ,
1244+ dist. path ( ) ,
1245+ MOCK_UV_VERSION ,
1246+ false ,
1247+ TarBackend :: default ( ) ,
1248+ ) ;
12361249 assert ! ( sdist_result. is_err( ) ) ;
12371250
12381251 // Wheel build should fail
@@ -1278,7 +1291,13 @@ mod tests {
12781291 fs_err:: write ( & wheel_path, old_content) . unwrap ( ) ;
12791292
12801293 // Build should fail and delete existing files
1281- let sdist_result = build_source_dist ( src. path ( ) , dist. path ( ) , MOCK_UV_VERSION , false ) ;
1294+ let sdist_result = build_source_dist (
1295+ src. path ( ) ,
1296+ dist. path ( ) ,
1297+ MOCK_UV_VERSION ,
1298+ false ,
1299+ TarBackend :: default ( ) ,
1300+ ) ;
12821301 assert ! ( sdist_result. is_err( ) ) ;
12831302
12841303 let wheel_result = build_wheel ( src. path ( ) , dist. path ( ) , None , MOCK_UV_VERSION , false ) ;
@@ -1334,7 +1353,14 @@ mod tests {
13341353 fs_err:: write ( & wheel_path, old_content) . unwrap ( ) ;
13351354
13361355 // Build should succeed and overwrite existing files
1337- build_source_dist ( src. path ( ) , dist. path ( ) , MOCK_UV_VERSION , false ) . unwrap ( ) ;
1356+ build_source_dist (
1357+ src. path ( ) ,
1358+ dist. path ( ) ,
1359+ MOCK_UV_VERSION ,
1360+ false ,
1361+ TarBackend :: default ( ) ,
1362+ )
1363+ . unwrap ( ) ;
13381364 build_wheel ( src. path ( ) , dist. path ( ) , None , MOCK_UV_VERSION , false ) . unwrap ( ) ;
13391365
13401366 // Verify files were overwritten (content should be different)
@@ -2005,8 +2031,14 @@ mod tests {
20052031 . unwrap ( ) ;
20062032
20072033 let dist = TempDir :: new ( ) . unwrap ( ) ;
2008- let source_dist_filename =
2009- build_source_dist ( tmp_dir. path ( ) , dist. path ( ) , MOCK_UV_VERSION , false ) . unwrap ( ) ;
2034+ let source_dist_filename = build_source_dist (
2035+ tmp_dir. path ( ) ,
2036+ dist. path ( ) ,
2037+ MOCK_UV_VERSION ,
2038+ false ,
2039+ TarBackend :: default ( ) ,
2040+ )
2041+ . unwrap ( ) ;
20102042 let source_dist_path = dist. path ( ) . join ( source_dist_filename. to_string ( ) ) ;
20112043 let contents = sdist_contents ( & source_dist_path) ;
20122044
0 commit comments