From 9dcd882c83923dd0c1a83e84a0793d678cd99fa1 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Sat, 31 Jan 2026 00:05:27 -0800 Subject: [PATCH] Use uv to install docs with dependency groups --- .readthedocs.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 67e8d311..dc576b13 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -15,11 +15,13 @@ sphinx: build: os: ubuntu-22.04 tools: - python: "3.11" - -python: - install: - - method: pip - path: . - extra_requirements: - - docs + python: "3.13" + jobs: + 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 --frozen --group docs \ No newline at end of file