From b7f535bf595c386da26bcbe8019bc495f83bc34e Mon Sep 17 00:00:00 2001 From: Tiago Nobrega Date: Thu, 30 Jan 2025 16:57:00 -0300 Subject: [PATCH] ci: use uv requirements on readthedocs --- .readthedocs.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index a6764999f..5f512d6db 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -6,13 +6,19 @@ version: 2 build: - os: ubuntu-22.04 + os: ubuntu-24.04 + apt_packages: + - curl tools: - python: "3.10" + python: "3.12" jobs: post_checkout: - git fetch --tags --unshallow # Also fetch tags - git describe # Make sure we get a proper version + # Generate a requirements.txt file while RTD doesn't understand uv + - curl -LsSf https://astral.sh/uv/install.sh | sh + - source $HOME/.local/bin/env + - uv export --no-dev --extra doc --no-emit-workspace --no-emit-package pywin32 --output-file uv-requirements.txt # Build documentation in the docs/ directory with Sphinx sphinx: @@ -24,7 +30,6 @@ sphinx: # and requirements required to build your docs python: install: + - requirements: uv-requirements.txt - method: pip path: . - extra_requirements: - - docs