diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 82a121285..2c97bb931 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -24,8 +24,9 @@ build: # Install poetry # https://python-poetry.org/docs/#installing-manually - pip install poetry==1.8.1 - # Tell poetry to not use a virtual environment - - poetry config virtualenvs.create false + post_install: # Install dependencies with 'docs' dependency group # https://python-poetry.org/docs/managing-dependencies/#dependency-groups - - poetry install -vvv --without dev --with docs --with all-runtimes --with all-runtimes-dev + # VIRTUAL_ENV needs to be set manually for now. + # See https://github.com/readthedocs/readthedocs.org/pull/11152/ + - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install -vvv --without dev --with docs --with all-runtimes --with all-runtimes-dev