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

makefile/RTD: Use uv if installed #1320

Merged
merged 2 commits into from
May 25, 2024
Merged

makefile/RTD: Use uv if installed #1320

merged 2 commits into from
May 25, 2024

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented May 10, 2024

Using uv to install dependencies is quicker than pip.

On Read the Docs, it adds 1 second to install uv, and then cuts the docs build time from 28s -> 13s, overall halves the time from 28s -> 14s.

Locally, running make clean; time make venv with a warm cache:

pip: make venv 4.05s user 0.92s system 91% cpu 5.451 total
uv: make venv 0.03s user 0.19s system 119% cpu 0.179 total

make html is the same for both.

Overall, make clean html goes from 7s -> 3s.


📚 Documentation preview 📚: https://cpython-devguide--1320.org.readthedocs.build/

@hugovk hugovk merged commit 538c4e8 into python:main May 25, 2024
5 checks passed
@hugovk hugovk deleted the uv branch May 25, 2024 14:17
@hugovk
Copy link
Member Author

hugovk commented May 25, 2024

And the same thing for the PEPs repo: python/peps#3791

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants