Skip to content

Commit

Permalink
fix inverted log message (#7063)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored Sep 5, 2024
1 parent e7a7a81 commit 6648a9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/uv/src/commands/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;
Expand Down
4 changes: 2 additions & 2 deletions crates/uv/tests/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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`.
"###);

Expand Down

0 comments on commit 6648a9b

Please sign in to comment.