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: