@@ -1439,7 +1439,6 @@ fn build_fast_path() -> Result<()> {
14391439 let built_by_uv = current_dir ( ) ?. join ( "../../scripts/packages/built-by-uv" ) ;
14401440
14411441 uv_snapshot ! ( context. build( )
1442- . arg( "--preview" )
14431442 . arg( & built_by_uv)
14441443 . arg( "--out-dir" )
14451444 . arg( context. temp_dir. join( "output1" ) ) , @r###"
@@ -1465,7 +1464,6 @@ fn build_fast_path() -> Result<()> {
14651464 . assert ( predicate:: path:: is_file ( ) ) ;
14661465
14671466 uv_snapshot ! ( context. build( )
1468- . arg( "--preview" )
14691467 . arg( & built_by_uv)
14701468 . arg( "--out-dir" )
14711469 . arg( context. temp_dir. join( "output2" ) )
@@ -1485,7 +1483,6 @@ fn build_fast_path() -> Result<()> {
14851483 . assert ( predicate:: path:: is_file ( ) ) ;
14861484
14871485 uv_snapshot ! ( context. build( )
1488- . arg( "--preview" )
14891486 . arg( & built_by_uv)
14901487 . arg( "--out-dir" )
14911488 . arg( context. temp_dir. join( "output3" ) )
@@ -1505,7 +1502,6 @@ fn build_fast_path() -> Result<()> {
15051502 . assert ( predicate:: path:: is_file ( ) ) ;
15061503
15071504 uv_snapshot ! ( context. build( )
1508- . arg( "--preview" )
15091505 . arg( & built_by_uv)
15101506 . arg( "--out-dir" )
15111507 . arg( context. temp_dir. join( "output4" ) )
@@ -1545,7 +1541,6 @@ fn build_list_files() -> Result<()> {
15451541 // By default, we build the wheel from the source dist, which we need to do even for the list
15461542 // task.
15471543 uv_snapshot ! ( context. build( )
1548- . arg( "--preview" )
15491544 . arg( & built_by_uv)
15501545 . arg( "--out-dir" )
15511546 . arg( context. temp_dir. join( "output1" ) )
@@ -1601,7 +1596,6 @@ fn build_list_files() -> Result<()> {
16011596 . assert ( predicate:: path:: missing ( ) ) ;
16021597
16031598 uv_snapshot ! ( context. build( )
1604- . arg( "--preview" )
16051599 . arg( & built_by_uv)
16061600 . arg( "--out-dir" )
16071601 . arg( context. temp_dir. join( "output2" ) )
@@ -1670,7 +1664,6 @@ fn build_list_files_errors() -> Result<()> {
16701664 // In CI, we run with link mode settings.
16711665 filters. push ( ( "--link-mode <LINK_MODE> " , "" ) ) ;
16721666 uv_snapshot ! ( filters, context. build( )
1673- . arg( "--preview" )
16741667 . arg( & built_by_uv)
16751668 . arg( "--out-dir" )
16761669 . arg( context. temp_dir. join( "output1" ) )
@@ -1694,7 +1687,6 @@ fn build_list_files_errors() -> Result<()> {
16941687 // Windows normalization
16951688 filters. push ( ( "/crates/uv/../../" , "/" ) ) ;
16961689 uv_snapshot ! ( filters, context. build( )
1697- . arg( "--preview" )
16981690 . arg( & anyio_local)
16991691 . arg( "--out-dir" )
17001692 . arg( context. temp_dir. join( "output2" ) )
@@ -1987,12 +1979,7 @@ fn force_pep517() -> Result<()> {
19871979 // We need to use a real `uv_build` package.
19881980 let context = TestContext :: new ( "3.12" ) . with_exclude_newer ( "2025-05-27T00:00:00Z" ) ;
19891981
1990- context
1991- . init ( )
1992- . arg ( "--build-backend" )
1993- . arg ( "uv" )
1994- . assert ( )
1995- . success ( ) ;
1982+ context. init ( ) . assert ( ) . success ( ) ;
19961983
19971984 let pyproject_toml = context. temp_dir . child ( "pyproject.toml" ) ;
19981985 pyproject_toml. write_str ( indoc ! { r#"
@@ -2026,7 +2013,7 @@ fn force_pep517() -> Result<()> {
20262013
20272014 ----- stderr -----
20282015 Building source distribution...
2029- Error: Missing module directory for `does_not_exist` in `src`. Found : `temp `
2016+ Error: Missing source directory at : `src `
20302017 × Failed to build `[TEMP_DIR]/`
20312018 ├─▶ The build backend returned an error
20322019 ╰─▶ Call to `uv_build.build_sdist` failed (exit status: 1)
0 commit comments