Fix docs build for Poetry >=1.8 (#1900)

This commit is contained in:
Robbe Sneyders
2024-03-20 22:23:47 +01:00
committed by GitHub
parent ee399fbfe6
commit e56bc3b42c

View File

@@ -10,9 +10,9 @@ build:
jobs:
post_create_environment:
# Install poetry
- pip install poetry
- python -m pip install poetry
# Tell poetry to not use a virtual environment
- poetry config virtualenvs.create false
post_install:
# Install dependencies with 'docs' dependency group
- poetry install --with docs --all-extras
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH python -m poetry install --with docs --all-extras