From 6648a9b9408f164ed52e0c88702b561f413647ac Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Wed, 4 Sep 2024 22:42:08 -0400 Subject: [PATCH] fix inverted log message (#7063) --- crates/uv/src/commands/build.rs | 2 +- crates/uv/tests/build.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/uv/src/commands/build.rs b/crates/uv/src/commands/build.rs index f66331126f5c..e8ed68dabaa8 100644 --- a/crates/uv/src/commands/build.rs +++ b/crates/uv/src/commands/build.rs @@ -436,7 +436,7 @@ async fn build_impl( BuiltDistributions::Both(output_dir.join(&sdist), output_dir.join(&wheel)) } BuildPlan::WheelFromSdist => { - anstream::eprintln!("{}", "Building source distribution from wheel...".bold()); + anstream::eprintln!("{}", "Building wheel from source distribution...".bold()); // Extract the source distribution into a temporary directory. let reader = fs_err::tokio::File::open(src.path()).await?; diff --git a/crates/uv/tests/build.rs b/crates/uv/tests/build.rs index 7fd8483c8282..7c7f52b14182 100644 --- a/crates/uv/tests/build.rs +++ b/crates/uv/tests/build.rs @@ -758,7 +758,7 @@ fn wheel_from_sdist() -> Result<()> { ----- stdout ----- ----- stderr ----- - Building source distribution from wheel... + Building wheel from source distribution... running egg_info writing src/project.egg-info/PKG-INFO writing dependency_links to src/project.egg-info/dependency_links.txt @@ -815,7 +815,7 @@ fn wheel_from_sdist() -> Result<()> { ----- stdout ----- ----- stderr ----- - Building source distribution from wheel... + Building wheel from source distribution... error: `dist/project-0.1.0-py3-none-any.whl` is not a valid build source. Expected to receive a source directory, or a source distribution ending in one of: `.zip`, `.tar.gz`, `.tar.bz2`, `.tar.xz`, or `.tar.zst`. "###);