Skip to content

Install uv from PyPI on Read the Docs - #604

Merged
honzajavorek merged 2 commits into
masterfrom
honzajavorek/rtd-uv-fix
Nov 5, 2026
Merged

honzajavorek merged 2 commits into
masterfrom
honzajavorek/rtd-uv-fix

Conversation

@honzajavorek

@honzajavorek honzajavorek commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Fixes the Read the Docs build after #602. Build 35665759 for #603 failed at the asdf global uv latest step:

asdf global uv latest
redirect url:
No compatible versions available (uv [0-9])

asdf install uv latest had just succeeded, so it looks like GitHub refused the second lookup of "latest" (probably rate limiting on the shared build servers). Asking GitHub for "latest" on every build will keep failing like this now and then.

This PR installs uv from PyPI with the Python that Read the Docs already provides (python -m pip install uv). Then asdf reshim python puts the uv command on PATH. That needs no asdf plugin and no GitHub API, and it still installs exactly what's in uv.lock.

The first attempt ran uv as python -m uv, but build 35665878 failed at uv sync. Once the virtualenv exists, Read the Docs activates it, so python points to the virtualenv, which has no uv. The uv command made available by the reshim doesn't depend on which Python is active.

Once this is merged, I'll rebase #603 on top of it.

🤖 Generated with Claude Code

honzajavorek and others added 2 commits November 5, 2026 10:00
Installing uv with asdf resolves "latest" through GitHub, which failed
on Read the Docs with "No compatible versions available (uv [0-9])".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Once the venv exists, python points to it, and it has no uv module.
Reshim asdf so the uv command from the base Python is on PATH.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@honzajavorek
honzajavorek merged commit 7f36a4b into master Nov 5, 2026
3 checks passed
@honzajavorek
honzajavorek deleted the honzajavorek/rtd-uv-fix branch November 5, 2026 09:32
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.

1 participant