From 7c75e4af311823103579ab8eb92a707f9b3d1784 Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" Date: Tue, 4 Feb 2025 14:40:42 -0500 Subject: [PATCH] chore: Simplify RTD build --- .readthedocs.yaml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 22017fca..5be78526 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -9,15 +9,9 @@ build: - asdf plugin add uv - asdf install uv latest - asdf global uv latest - # Turn `python -m virtualenv` into `python -c pass` - - truncate --size 0 $( dirname $( uv python find ) )/../lib/python3*/site-packages/virtualenv/__main__.py - post_create_environment: + create_environment: - uv venv $READTHEDOCS_VIRTUALENV_PATH - # Turn `python -m pip` into `python -c pass` - - truncate --size 0 $( ls -d $READTHEDOCS_VIRTUALENV_PATH/lib/python3* )/site-packages/pip.py - # Use a cache dir in the same mount to halve the install time - - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install --cache-dir $READTHEDOCS_VIRTUALENV_PATH/../../uv_cache --upgrade sphinx - post_install: + install: - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install --cache-dir $READTHEDOCS_VIRTUALENV_PATH/../../uv_cache -r docs/requirements.txt sphinx: