Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promote usage of uv run (no more python vs python3) #13599

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented Mar 8, 2025

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 with uv 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 to pyproject.toml and .gitignoring the uv.lock file.

@Avasam Avasam added the project: infrastructure typeshed build, test, documentation, or distribution related label Mar 8, 2025
@Avasam
Copy link
Collaborator Author

Avasam commented Mar 8, 2025

Oh, no shebang update until astral-sh/ruff#13021, I'll revert those.

@Akuli
Copy link
Collaborator

Akuli commented Mar 9, 2025

Let's wait for #13597 (comment) to be resolved before merging this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project: infrastructure typeshed build, test, documentation, or distribution related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants