Skip to content

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

Merged
hugovk merged 1 commit into
python:mainfrom
hugovk:uv
May 29, 2024
Merged

Infra: makefile/RTD: Use uv if installed#3791
hugovk merged 1 commit into
python:mainfrom
hugovk:uv

Conversation

@hugovk

@hugovkhugovk commented May 25, 2024

Copy link
Copy Markdown
Member

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 a team and AA-Turner as code ownersMay 25, 2024 15:01
@hugovkhugovk changed the title makefile/RTD: Use uv if installedInfra: makefile/RTD: Use uv if installedMay 25, 2024
@hugovkhugovk added the infra Core infrastructure for building and rendering PEPs label May 25, 2024
@hugovk
hugovk merged commit 3b62de3 into python:mainMay 29, 2024
@hugovk
hugovk deleted the uv branch May 29, 2024 14:35
@hugovkhugovk mentioned this pull request Jun 3, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infraCore infrastructure for building and rendering PEPs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@hugovk@JelleZijlstra