Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Infra: makefile/RTD: Use uv if installed #3791

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

Merged
merged 1 commit into from
May 29, 2024
Merged

Infra: makefile/RTD: Use uv if installed #3791

merged 1 commit into from
May 29, 2024

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented May 25, 2024

Like python/devguide#1320.

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 134s -> 115s, overall reduces the time from 146s -> 129s.

pip: https://beta.readthedocs.org/projects/hugovk-peps/builds/24491058/
uv: https://beta.readthedocs.org/projects/hugovk-peps/builds/24491059/

Locally, running make clean; time make venv with a warm cache goes from 8.6s -> 0.5s:

  • pip: make venv 4.49s user 0.94s system 63% cpu 8.586 total
  • uv: make venv 0.04s user 0.12s system 34% cpu 0.461 total

make html is the same for both.

Overall, make clean html goes from 1m26s -> 1m09s.


📚 Documentation preview 📚: https://pep-previews--3791.org.readthedocs.build/

@hugovk hugovk requested review from AA-Turner and a team as code owners May 25, 2024 15:01
@hugovk hugovk changed the title makefile/RTD: Use uv if installed Infra: makefile/RTD: Use uv if installed May 25, 2024
@hugovk hugovk added the infra Core infrastructure for building and rendering PEPs label May 25, 2024
@hugovk hugovk merged commit 3b62de3 into python:main May 29, 2024
7 checks passed
@hugovk hugovk deleted the uv branch May 29, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infra Core infrastructure for building and rendering PEPs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants