Promote usage of uv run
(no more python vs python3)
#13599
+35
−28
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.
Using
uv run
is optional. "medium to advanced" python users already know to activate their venv and use the right py/python/python3 command if they want to.Contributors who want to use
uv run
but with a custom venv can do so withuv run --active
. I use that on WSL with a.venv-linux
venv.This is mostly simplifying the instructions, and reducing the risk of a command failing from an unactivated venv, for newer contributors. Documentation only, it doesn't change any actual flow.
#13597 promotes the usage of
uv pip
.This also also enables running
uv run
without having to add--no-project
every time. Until astral-sh/uv#8666, this requires adding a[project]
section topyproject.toml
and.gitignoring
theuv.lock
file.