Repository navigation
Install uv from PyPI on Read the Docs - #604
Merged
Merged
Conversation
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>
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the Read the Docs build after #602. Build 35665759 for #603 failed at the
asdf global uv lateststep:asdf install uv latesthad 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). Thenasdf reshim pythonputs theuvcommand on PATH. That needs no asdf plugin and no GitHub API, and it still installs exactly what's inuv.lock.The first attempt ran uv as
python -m uv, but build 35665878 failed atuv sync. Once the virtualenv exists, Read the Docs activates it, sopythonpoints to the virtualenv, which has no uv. Theuvcommand 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