From 771f9f4ca98a6f5b4c945a8cac39293fee1fc8ed Mon Sep 17 00:00:00 2001 From: Adam Logan Date: Wed, 2 Dec 2026 21:36:50 -0800 Subject: [PATCH] Install docs dependencies with uv sync on Read the Docs The previous `uv export | uv pip install -r -` pipe hid resolution failures: export errored, install received empty input and succeeded, and the build failed later on a missing Sphinx extension. Use Read the Docs' documented uv pattern instead, syncing straight into its virtualenv so a resolution error fails the install step. --- .readthedocs.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 7af745bb..fd9fcf12 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -6,9 +6,14 @@ build: tools: python: "3.11" jobs: - post_install: - - pip install uv - - uv export --group docs --no-hashes | uv pip install -r - + pre_create_environment: + - asdf plugin add uv + - asdf install uv latest + - asdf global uv latest + create_environment: + - uv venv "${READTHEDOCS_VIRTUALENV_PATH}" + install: + - UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --group docs # Build documentation in the docs/ directory with Sphinx sphinx: