From be0db3cc49506294ae1845b6e746e40cd76f39a9 Mon Sep 17 00:00:00 2001 From: Daniel Hollas Date: Thu, 16 May 2024 07:17:21 +0100 Subject: [PATCH] Docs: Use uv installer in readthedocs build (#6395) --- .readthedocs.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index b934cf685e..3ceaf73344 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -11,18 +11,16 @@ build: - graphviz os: ubuntu-22.04 tools: - python: '3.10' - -# Need to install the package itself such that the entry points are installed and the API doc can build properly -python: - install: - - method: pip - path: . - extra_requirements: - - docs - - tests - - rest - - atomic_tools + python: '3.11' + jobs: + # Use uv to speed up the build + # https://docs.readthedocs.io/en/stable/build-customization.html#install-dependencies-with-uv + post_create_environment: + - asdf plugin add uv + - asdf install uv 0.1.44 + - asdf global uv 0.1.44 + post_install: + - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install .[docs,tests,rest,atomic_tools] # Let the build fail if there are any warnings sphinx: