diff --git a/crates/uv/src/commands/pip/compile.rs b/crates/uv/src/commands/pip/compile.rs index f1b1d843c5349..fa9886b4ea334 100644 --- a/crates/uv/src/commands/pip/compile.rs +++ b/crates/uv/src/commands/pip/compile.rs @@ -29,7 +29,7 @@ use uv_fs::{CWD, Simplified}; use uv_git::ResolvedRepositoryReference; use uv_install_wheel::LinkMode; use uv_normalize::PackageName; -use uv_preview::{Preview, PreviewFeature}; +use uv_preview::Preview; use uv_pypi_types::{Conflicts, SupportedEnvironments}; use uv_python::{ EnvironmentPreference, PythonDownloads, PythonEnvironment, PythonInstallation, @@ -49,7 +49,7 @@ use uv_settings::PythonInstallMirrors; use uv_static::EnvVars; use uv_torch::{TorchMode, TorchSource, TorchStrategy}; use uv_types::{EmptyInstalledPackages, HashStrategy}; -use uv_warnings::{warn_user, warn_user_once}; +use uv_warnings::warn_user; use uv_workspace::WorkspaceCache; use uv_workspace::pyproject::ExtraBuildDependencies; @@ -123,15 +123,6 @@ pub(crate) async fn pip_compile( printer: Printer, preview: Preview, ) -> Result { - if !preview.is_enabled(PreviewFeature::ExtraBuildDependencies) - && !extra_build_dependencies.is_empty() - { - warn_user_once!( - "The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features {}` to disable this warning.", - PreviewFeature::ExtraBuildDependencies - ); - } - // If the user provides a `pyproject.toml` or other TOML file as the output file, raise an // error. if output_file diff --git a/crates/uv/src/commands/pip/install.rs b/crates/uv/src/commands/pip/install.rs index 7cba0f1909ef2..a6a592ee550a3 100644 --- a/crates/uv/src/commands/pip/install.rs +++ b/crates/uv/src/commands/pip/install.rs @@ -37,7 +37,7 @@ use uv_resolver::{ use uv_settings::PythonInstallMirrors; use uv_torch::{TorchMode, TorchSource, TorchStrategy}; use uv_types::HashStrategy; -use uv_warnings::{warn_user, warn_user_once}; +use uv_warnings::warn_user; use uv_workspace::WorkspaceCache; use uv_workspace::pyproject::ExtraBuildDependencies; @@ -106,15 +106,6 @@ pub(crate) async fn pip_install( ) -> anyhow::Result { let start = std::time::Instant::now(); - if !preview.is_enabled(PreviewFeature::ExtraBuildDependencies) - && !extra_build_dependencies.is_empty() - { - warn_user_once!( - "The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features {}` to disable this warning.", - PreviewFeature::ExtraBuildDependencies - ); - } - let client_builder = client_builder.clone().keyring(keyring_provider); // Read all requirements from the provided sources. diff --git a/crates/uv/src/commands/pip/sync.rs b/crates/uv/src/commands/pip/sync.rs index c8fc45e018e12..6f5ddc962281c 100644 --- a/crates/uv/src/commands/pip/sync.rs +++ b/crates/uv/src/commands/pip/sync.rs @@ -36,7 +36,7 @@ use uv_resolver::{ use uv_settings::PythonInstallMirrors; use uv_torch::{TorchMode, TorchSource, TorchStrategy}; use uv_types::HashStrategy; -use uv_warnings::{warn_user, warn_user_once}; +use uv_warnings::warn_user; use uv_workspace::WorkspaceCache; use uv_workspace::pyproject::ExtraBuildDependencies; @@ -93,15 +93,6 @@ pub(crate) async fn pip_sync( printer: Printer, preview: Preview, ) -> Result { - if !preview.is_enabled(PreviewFeature::ExtraBuildDependencies) - && !extra_build_dependencies.is_empty() - { - warn_user_once!( - "The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features {}` to disable this warning.", - PreviewFeature::ExtraBuildDependencies - ); - } - let client_builder = client_builder.clone().keyring(keyring_provider); // Initialize a few defaults. diff --git a/crates/uv/src/commands/project/add.rs b/crates/uv/src/commands/project/add.rs index cc09ffcb76d9d..86d45c35a41b7 100644 --- a/crates/uv/src/commands/project/add.rs +++ b/crates/uv/src/commands/project/add.rs @@ -29,7 +29,7 @@ use uv_fs::{LockedFile, LockedFileError, Simplified}; use uv_git::GIT_STORE; use uv_normalize::{DEV_DEPENDENCIES, DefaultExtras, DefaultGroups, ExtraName, PackageName}; use uv_pep508::{MarkerTree, VersionOrUrl}; -use uv_preview::{Preview, PreviewFeature}; +use uv_preview::Preview; use uv_python::{Interpreter, PythonDownloads, PythonEnvironment, PythonPreference, PythonRequest}; use uv_redacted::DisplaySafeUrl; use uv_requirements::{NamedRequirementsResolver, RequirementsSource, RequirementsSpecification}; @@ -103,15 +103,6 @@ pub(crate) async fn add( printer: Printer, preview: Preview, ) -> Result { - if !preview.is_enabled(PreviewFeature::ExtraBuildDependencies) - && !settings.resolver.extra_build_dependencies.is_empty() - { - warn_user_once!( - "The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features {}` to disable this warning.", - PreviewFeature::ExtraBuildDependencies - ); - } - for source in &requirements { match source { RequirementsSource::PyprojectToml(_) => { diff --git a/crates/uv/src/commands/project/lock.rs b/crates/uv/src/commands/project/lock.rs index 210a625ddeb56..bd55a73d16b67 100644 --- a/crates/uv/src/commands/project/lock.rs +++ b/crates/uv/src/commands/project/lock.rs @@ -472,15 +472,6 @@ async fn do_lock( torch_backend: _, } = settings; - if !preview.is_enabled(PreviewFeature::ExtraBuildDependencies) - && !extra_build_dependencies.is_empty() - { - warn_user_once!( - "The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features {}` to disable this warning.", - PreviewFeature::ExtraBuildDependencies - ); - } - // Collect the requirements, etc. let members = target.members(); let packages = target.packages(); diff --git a/crates/uv/src/commands/project/sync.rs b/crates/uv/src/commands/project/sync.rs index 07f674af1d13f..08cec6a4c4b1d 100644 --- a/crates/uv/src/commands/project/sync.rs +++ b/crates/uv/src/commands/project/sync.rs @@ -32,7 +32,7 @@ use uv_resolver::{FlatIndex, ForkStrategy, Installable, Lock, PrereleaseMode, Re use uv_scripts::Pep723Script; use uv_settings::PythonInstallMirrors; use uv_types::{BuildIsolation, HashStrategy}; -use uv_warnings::{warn_user, warn_user_once}; +use uv_warnings::warn_user; use uv_workspace::pyproject::Source; use uv_workspace::{DiscoveryOptions, MemberDiscovery, VirtualProject, Workspace, WorkspaceCache}; @@ -639,15 +639,6 @@ pub(super) async fn do_sync( sources, } = settings; - if !preview.is_enabled(PreviewFeature::ExtraBuildDependencies) - && !extra_build_dependencies.is_empty() - { - warn_user_once!( - "The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features {}` to disable this warning.", - PreviewFeature::ExtraBuildDependencies - ); - } - // Lower the extra build dependencies with source resolution. let extra_build_requires = match &target { InstallTarget::Workspace { workspace, .. } diff --git a/crates/uv/tests/it/pip_install.rs b/crates/uv/tests/it/pip_install.rs index d0615d55e1090..81501a560fd94 100644 --- a/crates/uv/tests/it/pip_install.rs +++ b/crates/uv/tests/it/pip_install.rs @@ -13002,13 +13002,12 @@ fn pip_install_build_dependencies_respect_locked_versions() -> Result<()> { "#})?; // The child should be built with anyio 4.0 - uv_snapshot!(context.filters(), context.pip_install().arg(".").env(EnvVars::EXPECTED_ANYIO_VERSION, "4.0"), @" + uv_snapshot!(context.filters(), context.pip_install().arg(".").env(EnvVars::EXPECTED_ANYIO_VERSION, "4.0"), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved [N] packages in [TIME] Prepared [N] packages in [TIME] Installed [N] packages in [TIME] @@ -13036,13 +13035,12 @@ fn pip_install_build_dependencies_respect_locked_versions() -> Result<()> { // The child should be rebuilt with anyio 3.7, without `--reinstall` uv_snapshot!(context.filters(), context.pip_install().arg(".") - .arg("--reinstall-package").arg("child").env(EnvVars::EXPECTED_ANYIO_VERSION, "4.0"), @" + .arg("--reinstall-package").arg("child").env(EnvVars::EXPECTED_ANYIO_VERSION, "4.0"), @r" success: false exit_code: 1 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved [N] packages in [TIME] × Failed to build `child @ file://[TEMP_DIR]/child` ├─▶ The build backend returned an error @@ -13056,13 +13054,12 @@ fn pip_install_build_dependencies_respect_locked_versions() -> Result<()> { "); uv_snapshot!(context.filters(), context.pip_install().arg(".") - .arg("--reinstall-package").arg("child").env(EnvVars::EXPECTED_ANYIO_VERSION, "3.7"), @" + .arg("--reinstall-package").arg("child").env(EnvVars::EXPECTED_ANYIO_VERSION, "3.7"), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved [N] packages in [TIME] Prepared [N] packages in [TIME] Uninstalled [N] packages in [TIME] @@ -13073,24 +13070,6 @@ fn pip_install_build_dependencies_respect_locked_versions() -> Result<()> { ~ parent==0.1.0 (from file://[TEMP_DIR]/) "); - // With preview enabled, there's no warning - uv_snapshot!(context.filters(), context.pip_install().arg(".") - .arg("--preview-features").arg("extra-build-dependencies") - .arg("--reinstall-package").arg("child") - .env(EnvVars::EXPECTED_ANYIO_VERSION, "3.7"), @" - success: true - exit_code: 0 - ----- stdout ----- - - ----- stderr ----- - Resolved [N] packages in [TIME] - Prepared [N] packages in [TIME] - Uninstalled [N] packages in [TIME] - Installed [N] packages in [TIME] - ~ child==0.1.0 (from file://[TEMP_DIR]/child) - ~ parent==0.1.0 (from file://[TEMP_DIR]/) - "); - Ok(()) } diff --git a/crates/uv/tests/it/sync.rs b/crates/uv/tests/it/sync.rs index 34cac43206caf..1ab31b3cdefcd 100644 --- a/crates/uv/tests/it/sync.rs +++ b/crates/uv/tests/it/sync.rs @@ -1953,13 +1953,12 @@ fn sync_extra_build_dependencies() -> Result<()> { "#})?; context.venv().arg("--clear").assert().success(); - uv_snapshot!(context.filters(), context.sync(), @" + uv_snapshot!(context.filters(), context.sync(), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved [N] packages in [TIME] Prepared [N] packages in [TIME] Installed [N] packages in [TIME] @@ -1967,13 +1966,12 @@ fn sync_extra_build_dependencies() -> Result<()> { "); context.venv().arg("--clear").assert().success(); - uv_snapshot!(context.filters(), context.sync(), @" + uv_snapshot!(context.filters(), context.sync(), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved [N] packages in [TIME] Installed [N] packages in [TIME] + child==0.1.0 (from file://[TEMP_DIR]/child) @@ -1996,13 +1994,12 @@ fn sync_extra_build_dependencies() -> Result<()> { "#})?; context.venv().arg("--clear").assert().success(); - uv_snapshot!(context.filters(), context.sync(), @" + uv_snapshot!(context.filters(), context.sync(), @r" success: false exit_code: 1 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved [N] packages in [TIME] × Failed to build `child @ file://[TEMP_DIR]/child` ├─▶ The build backend returned an error @@ -2065,13 +2062,12 @@ fn sync_extra_build_dependencies() -> Result<()> { // Confirm that `bad_child` fails if anyio is provided context.venv().arg("--clear").assert().success(); - uv_snapshot!(context.filters(), context.sync(), @" + uv_snapshot!(context.filters(), context.sync(), @r" success: false exit_code: 1 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved [N] packages in [TIME] × Failed to build `bad-child @ file://[TEMP_DIR]/bad_child` ├─▶ The build backend returned an error @@ -2101,13 +2097,12 @@ fn sync_extra_build_dependencies() -> Result<()> { "#})?; context.venv().arg("--clear").assert().success(); - uv_snapshot!(context.filters(), context.sync(), @" + uv_snapshot!(context.filters(), context.sync(), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved [N] packages in [TIME] Prepared [N] packages in [TIME] Installed [N] packages in [TIME] @@ -2194,13 +2189,12 @@ fn sync_extra_build_dependencies_setuptools_legacy() -> Result<()> { "#})?; context.venv().arg("--clear").assert().success(); - uv_snapshot!(context.filters(), context.sync(), @" + uv_snapshot!(context.filters(), context.sync(), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved [N] packages in [TIME] Prepared [N] packages in [TIME] Installed [N] packages in [TIME] @@ -2301,13 +2295,12 @@ fn sync_extra_build_dependencies_setuptools() -> Result<()> { "#})?; context.venv().arg("--clear").assert().success(); - uv_snapshot!(context.filters(), context.sync(), @" + uv_snapshot!(context.filters(), context.sync(), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved [N] packages in [TIME] Prepared [N] packages in [TIME] Installed [N] packages in [TIME] @@ -2376,13 +2369,12 @@ fn sync_extra_build_dependencies_sources() -> Result<()> { })?; // Running `uv sync` should succeed, as `anyio` is provided as a source - uv_snapshot!(context.filters(), context.sync(), @" + uv_snapshot!(context.filters(), context.sync(), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved [N] packages in [TIME] Prepared [N] packages in [TIME] Installed [N] packages in [TIME] @@ -2512,13 +2504,12 @@ fn sync_extra_build_dependencies_index() -> Result<()> { // The child should be rebuilt with `3.5` on reinstall, the "latest" on Test PyPI. uv_snapshot!(context.filters(), context.sync() - .arg("--reinstall-package").arg("child").env(EnvVars::EXPECTED_ANYIO_VERSION, "4.3"), @" + .arg("--reinstall-package").arg("child").env(EnvVars::EXPECTED_ANYIO_VERSION, "4.3"), @r" success: false exit_code: 1 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved [N] packages in [TIME] × Failed to build `child @ file://[TEMP_DIR]/child` ├─▶ The build backend returned an error @@ -2532,13 +2523,12 @@ fn sync_extra_build_dependencies_index() -> Result<()> { "); uv_snapshot!(context.filters(), context.sync() - .arg("--reinstall-package").arg("child").env(EnvVars::EXPECTED_ANYIO_VERSION, "3.5"), @" + .arg("--reinstall-package").arg("child").env(EnvVars::EXPECTED_ANYIO_VERSION, "3.5"), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved [N] packages in [TIME] Prepared [N] packages in [TIME] Uninstalled [N] packages in [TIME] @@ -2610,13 +2600,12 @@ fn sync_extra_build_dependencies_sources_from_child() -> Result<()> { })?; // Running `uv sync` should fail due to the unapplied source - uv_snapshot!(context.filters(), context.sync().arg("--reinstall").arg("--refresh"), @" + uv_snapshot!(context.filters(), context.sync().arg("--reinstall").arg("--refresh"), @r" success: false exit_code: 1 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved [N] packages in [TIME] × Failed to build `child @ file://[TEMP_DIR]/child` ├─▶ The build backend returned an error @@ -2718,13 +2707,12 @@ fn sync_build_dependencies_module_error_hints() -> Result<()> { "#})?; context.venv().arg("--clear").assert().success(); - uv_snapshot!(context.filters(), context.sync(), @" + uv_snapshot!(context.filters(), context.sync(), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved [N] packages in [TIME] Prepared [N] packages in [TIME] Installed [N] packages in [TIME] @@ -2748,7 +2736,6 @@ fn sync_build_dependencies_module_error_hints() -> Result<()> { ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved [N] packages in [TIME] × Failed to build `child @ file://[TEMP_DIR]/child` ├─▶ The build backend returned an error @@ -2786,13 +2773,12 @@ fn sync_build_dependencies_module_error_hints() -> Result<()> { "#})?; context.venv().arg("--clear").assert().success(); - uv_snapshot!(context.filters(), context.sync(), @" + uv_snapshot!(context.filters(), context.sync(), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved [N] packages in [TIME] Prepared [N] packages in [TIME] Installed [N] packages in [TIME] @@ -13650,13 +13636,12 @@ fn sync_build_dependencies_respect_locked_versions() -> Result<()> { "#})?; // The child should be built with anyio 4.0 - uv_snapshot!(context.filters(), context.sync().env(EnvVars::EXPECTED_ANYIO_VERSION, "4.0"), @" + uv_snapshot!(context.filters(), context.sync().env(EnvVars::EXPECTED_ANYIO_VERSION, "4.0"), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved [N] packages in [TIME] Prepared [N] packages in [TIME] Installed [N] packages in [TIME] @@ -13683,13 +13668,12 @@ fn sync_build_dependencies_respect_locked_versions() -> Result<()> { // The child should be rebuilt with anyio 3.7, without `--reinstall` uv_snapshot!(context.filters(), context.sync() - .arg("--reinstall-package").arg("child").env(EnvVars::EXPECTED_ANYIO_VERSION, "4.0"), @" + .arg("--reinstall-package").arg("child").env(EnvVars::EXPECTED_ANYIO_VERSION, "4.0"), @r" success: false exit_code: 1 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved [N] packages in [TIME] × Failed to build `child @ file://[TEMP_DIR]/child` ├─▶ The build backend returned an error @@ -13703,13 +13687,12 @@ fn sync_build_dependencies_respect_locked_versions() -> Result<()> { "); uv_snapshot!(context.filters(), context.sync() - .arg("--reinstall-package").arg("child").env(EnvVars::EXPECTED_ANYIO_VERSION, "3.7"), @" + .arg("--reinstall-package").arg("child").env(EnvVars::EXPECTED_ANYIO_VERSION, "3.7"), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved [N] packages in [TIME] Prepared [N] packages in [TIME] Uninstalled [N] packages in [TIME] @@ -13719,23 +13702,6 @@ fn sync_build_dependencies_respect_locked_versions() -> Result<()> { ~ child==0.1.0 (from file://[TEMP_DIR]/child) "); - // With preview enabled, there's no warning - uv_snapshot!(context.filters(), context.sync() - .arg("--preview-features").arg("extra-build-dependencies") - .arg("--reinstall-package").arg("child") - .env(EnvVars::EXPECTED_ANYIO_VERSION, "3.7"), @" - success: true - exit_code: 0 - ----- stdout ----- - - ----- stderr ----- - Resolved [N] packages in [TIME] - Prepared [N] packages in [TIME] - Uninstalled [N] packages in [TIME] - Installed [N] packages in [TIME] - ~ child==0.1.0 (from file://[TEMP_DIR]/child) - "); - // Now, we'll set a constraint in the parent project pyproject_toml.write_str(indoc! {r#" [project] @@ -13766,13 +13732,12 @@ fn sync_build_dependencies_respect_locked_versions() -> Result<()> { // This should fail uv_snapshot!(context.filters(), context.sync() - .arg("--reinstall-package").arg("child").env(EnvVars::EXPECTED_ANYIO_VERSION, "4.1"), @" + .arg("--reinstall-package").arg("child").env(EnvVars::EXPECTED_ANYIO_VERSION, "4.1"), @r" success: false exit_code: 1 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved [N] packages in [TIME] × Failed to build `child @ file://[TEMP_DIR]/child` ├─▶ Failed to resolve requirements from `build-system.requires` and `extra-build-dependencies` @@ -13796,13 +13761,12 @@ fn sync_build_dependencies_respect_locked_versions() -> Result<()> { child = [{ requirement = "anyio>4", match-runtime = true }] "#})?; - uv_snapshot!(context.filters(), context.sync(), @" + uv_snapshot!(context.filters(), context.sync(), @r" success: false exit_code: 2 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved [N] packages in [TIME] error: Dependencies marked with `match-runtime = true` cannot include version specifiers, but found: `anyio>4` "); @@ -13966,13 +13930,12 @@ fn reject_unmatched_runtime() -> Result<()> { "#, )?; - uv_snapshot!(context.filters(), context.lock(), @" + uv_snapshot!(context.filters(), context.lock(), @r" success: false exit_code: 1 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. × Failed to download and build `source-distribution==0.0.3` ╰─▶ Extra build requirement `iniconfig` was declared with `match-runtime = true`, but `source-distribution` does not declare static metadata, making runtime-matching impossible help: `source-distribution` (v0.0.3) was included because `foo` (v0.1.0) depends on `source-distribution` @@ -14437,13 +14400,12 @@ fn match_runtime_optional() -> Result<()> { "#, )?; - uv_snapshot!(context.filters(), context.sync(), @" + uv_snapshot!(context.filters(), context.sync(), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved 3 packages in [TIME] Audited in [TIME] "); @@ -14529,13 +14491,12 @@ fn sync_extra_build_dependencies_cache() -> Result<()> { "#})?; // Running `uv sync` should rebuild the child package with the new build dependency. - uv_snapshot!(context.filters(), context.sync(), @" + uv_snapshot!(context.filters(), context.sync(), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved 2 packages in [TIME] Prepared 1 package in [TIME] Uninstalled 1 package in [TIME] @@ -14544,13 +14505,12 @@ fn sync_extra_build_dependencies_cache() -> Result<()> { "); // Running `uv sync` again should be a no-op. - uv_snapshot!(context.filters(), context.sync(), @" + uv_snapshot!(context.filters(), context.sync(), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved 2 packages in [TIME] Audited 1 package in [TIME] "); @@ -14570,13 +14530,12 @@ fn sync_extra_build_dependencies_cache() -> Result<()> { child = [{ requirement = "iniconfig>0", match-runtime = false }] "#})?; - uv_snapshot!(context.filters(), context.sync(), @" + uv_snapshot!(context.filters(), context.sync(), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- - warning: The `extra-build-dependencies` option is experimental and may change without warning. Pass `--preview-features extra-build-dependencies` to disable this warning. Resolved 2 packages in [TIME] Prepared 1 package in [TIME] Uninstalled 1 package in [TIME]