Skip to content

Commit d01e3c4

Browse files
committed
chore: Simplify RTD build
1 parent 3149334 commit d01e3c4

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.readthedocs.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,10 @@ build:
99
- asdf plugin add uv
1010
- asdf install uv latest
1111
- asdf global uv latest
12-
# Turn `python -m virtualenv` into `python -c pass`
13-
- truncate --size 0 $( dirname $( uv python find ) )/../lib/python3*/site-packages/virtualenv/__main__.py
14-
post_create_environment:
12+
create_environment:
1513
- uv venv $READTHEDOCS_VIRTUALENV_PATH
16-
# Turn `python -m pip` into `python -c pass`
17-
- truncate --size 0 $( ls -d $READTHEDOCS_VIRTUALENV_PATH/lib/python3* )/site-packages/pip.py
18-
# Use a cache dir in the same mount to halve the install time
19-
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install --cache-dir $READTHEDOCS_VIRTUALENV_PATH/../../uv_cache --upgrade sphinx
20-
post_install:
21-
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install --cache-dir $READTHEDOCS_VIRTUALENV_PATH/../../uv_cache -r docs/requirements.txt
14+
install:
15+
- uv pip install --cache-dir $READTHEDOCS_VIRTUALENV_PATH/../../uv_cache -r docs/requirements.txt
2216

2317
sphinx:
2418
configuration: docs/conf.py

0 commit comments

Comments
 (0)