From 8444f813b44d99cfd79e9e7e2f3ccd0e0e57915d Mon Sep 17 00:00:00 2001 From: Daniel Hollas Date: Mon, 13 Jan 2025 15:54:38 +0100 Subject: [PATCH] Update uv in RTD config (#660) * Use uv pip install --prefix option * Don't use uv cache * RTD: Add configuration file explicitly * Bump uv to 0.5.17 --- .readthedocs.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 382fc67b9..035600208 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -10,10 +10,17 @@ build: os: ubuntu-22.04 tools: python: '3.11' - commands: - - asdf plugin add uv - - asdf install uv 0.1.44 - - asdf global uv 0.1.44 - - uv venv - - uv pip install .[docs] - - .venv/bin/python -m sphinx -W --keep-going -d _build/doctrees -D language=en -b html docs/source $READTHEDOCS_OUTPUT/html + jobs: + pre_create_environment: + - asdf plugin add uv + - asdf install uv 0.5.17 + - asdf global uv 0.5.17 + create_environment: + - uv venv $READTHEDOCS_VIRTUALENV_PATH + install: + - uv pip install .[docs] --no-cache --prefix $READTHEDOCS_VIRTUALENV_PATH + +sphinx: + builder: html + fail_on_warning: true + configuration: docs/source/conf.py