From c162078050eafe511fb96167a7b3604d927e166b Mon Sep 17 00:00:00 2001 From: konsti Date: Fri, 18 Oct 2024 18:30:11 +0200 Subject: [PATCH] Add cfg for other external resources tests (#8320) Fixes #8295 --- crates/uv/Cargo.toml | 4 +++- crates/uv/tests/it/init.rs | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/uv/Cargo.toml b/crates/uv/Cargo.toml index 9dd54cb8c..e0a35abf8 100644 --- a/crates/uv/Cargo.toml +++ b/crates/uv/Cargo.toml @@ -119,7 +119,7 @@ ignored = [ ] [features] -default = ["python", "pypi", "git", "performance"] +default = ["python", "pypi", "git", "performance", "crates-io"] # Use better memory allocators, etc. — also turns-on self-update. performance = [ "performance-memory-allocator", @@ -137,5 +137,7 @@ python-patch = [] pypi = [] # Introduces a dependency on Git. git = [] +# Introduces a dependency on crates.io. +crates-io = [] # Adds self-update functionality. self-update = ["axoupdater", "uv-cli/self-update"] diff --git a/crates/uv/tests/it/init.rs b/crates/uv/tests/it/init.rs index d039dc8f4..33909d9ab 100644 --- a/crates/uv/tests/it/init.rs +++ b/crates/uv/tests/it/init.rs @@ -2538,6 +2538,7 @@ fn init_library_flit() -> Result<()> { /// Run `uv init --app --package --build-backend maturin` to create a packaged application project #[test] +#[cfg(feature = "crates-io")] fn init_app_build_backend_maturin() -> Result<()> { let context = TestContext::new("3.12"); @@ -2808,6 +2809,7 @@ fn init_app_build_backend_scikit() -> Result<()> { /// Run `uv init --lib --build-backend maturin` to create a packaged application project #[test] +#[cfg(feature = "crates-io")] fn init_lib_build_backend_maturin() -> Result<()> { let context = TestContext::new("3.12");