From 6e33d284b9cf0932ec1dd9682933caa8ea4eb555 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Thu, 18 Apr 2024 16:27:08 -0400 Subject: [PATCH] docs: setup uv for readthedocs (#453) Signed-off-by: Jinzhe Zeng --- .readthedocs.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 88e91028..a9f4e2a4 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -10,15 +10,14 @@ build: os: ubuntu-22.04 tools: python: "3.10" - + jobs: + post_create_environment: + - pip install uv + post_install: + - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install .[docs] # Build documentation in the docs/ directory with Sphinx sphinx: configuration: doc/conf.py # If using Sphinx, optionally build your docs in additional formats such as PDF formats: all - -# Optionally declare the Python requirements required to build your docs -python: - install: - - requirements: doc/requirements.txt