Show build and install summaries in uv run
and uv tool run
#5899
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Initially, we showed all resolver and installer output in
uv run
anduv tool run
, since it was way too much for workhorse commands. Then, we moved to showing no output by default, which was way too little -- you had no idea why anything was happening, and commands appeared to hang.This PR adds a more nuanced middle-ground. With
--verbose
, we continue to show everything. But by default, inuv run
anduv tool run
...This feels pretty good, in my limited testing. When everything is built / cached, you don't get any additional output. When there's work to do, you have a sense for what's happening, and we leave you with a single summary line ("Installed X packages") at the end.
Closes #5758.
Test Plan
Notice that the first
tool run
ends with an install line; the second shows no additional output:If you run
uv run
in a package for the first time, we do tell you that we're building / built it:But on the second run, there's no output:
If you add a
--with
, we'll show you all the installer progress bars (which disappear once they're done), and then a single summary line: