From 0b03af7d27c8eee814de64ac522b8c54cabbd2ba Mon Sep 17 00:00:00 2001 From: Julian Berman Date: Mon, 22 Apr 2024 12:13:02 +0300 Subject: [PATCH] Try convincing RTD to use uv. Refs: readthedocs/readthedocs.org#11290 --- .readthedocs.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index e6ab173..8a04e5f 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -3,7 +3,13 @@ version: 2 build: os: ubuntu-22.04 tools: - python: "3.11" + python: "3.12" + + jobs: + post_create_environment: + - pip install uv + post_install: + - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install -r docs/requirements.txt sphinx: builder: dirhtml @@ -11,7 +17,3 @@ sphinx: fail_on_warning: true formats: all - -python: - install: - - requirements: docs/requirements.txt