FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update pip install calls in scripts to use uv. And messages to reference current executable by Avasam · Pull Request #13597 · python/typeshed · GitHub

Repository navigation

Update pip install calls in scripts to use uv. And messages to reference current executable - #13597

Merged
srittau merged 6 commits into
python:mainfrom
Avasam:use-uv-pip-in-scripts
Mar 27, 2025
Merged

srittau merged 6 commits into
python:mainfrom
Avasam:use-uv-pip-in-scripts

Conversation

Avasam commented Mar 7, 2025 •
edited
Loading

Copy link
Copy Markdown
Collaborator

This doesn't force working with a virtual environment nor using a specific name for your venv (uv pip and uv run --active will reuse your activated environment)

Note I didn't touch python/python3 in docs this PR.
I'm also leaving GitHub jobs to a separate self-contained PR.

Avasam added the project: infrastructure typeshed build, test, or distribution related label Mar 7, 2025
Comment thread CONTRIBUTING.md Outdated
Avasam changed the title Use uv pip in scripts and docs Update pip install calls in scripts to use uv or reference current executable Mar 9, 2025
Comment thread CONTRIBUTING.md Outdated
Comment thread scripts/create_baseline_stubs.py Outdated

Akuli left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Nit: We should probably mention this to avoid assuming uv in later changes to this script.

Avasam commented Mar 27, 2025 •
edited
Loading

Copy link
Copy Markdown
Collaborator Author

Post-merge this undoes the changes in #13706 and unconditionally uses uv for that script. Since anything past the installation of requirements-tests.txt we can assume uv will be available. And uv pip respects the currently activated venv.

CC @srittau and @donbarbos

Avasam changed the title Update pip install calls in scripts to use uv or reference current executable Update pip install calls in scripts to use uv. And messages to reference current executable Mar 27, 2025
srittau merged commit 11929de into python:main Mar 27, 2025
Avasam deleted the use-uv-pip-in-scripts branch March 27, 2025 14:23
mmingyu pushed a commit to mmingyu/typeshed that referenced this pull request May 16, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

project: infrastructure typeshed build, test, or distribution related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL