Skip to content

Commit 297e07e

Browse files
committed
Fix RTD poetry configuration
This follows a change in RTD's user guide found at https://docs.readthedocs.io/en/stable/build-customization.html#install-dependencies-with-poetry, which they changed in readthedocs/readthedocs.org#11152 following a breaking change introduced by Poetry 1.8.
1 parent bde4455 commit 297e07e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.readthedocs.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ build:
1313
# Install poetry
1414
# https://python-poetry.org/docs/#installing-manually
1515
- pip install poetry
16-
# Tell poetry to not use a virtual environment
17-
- poetry config virtualenvs.create false
1816
post_install:
1917
# Install dependencies with 'docs' dependency group
2018
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
21-
- poetry install --with docs
19+
# VIRTUAL_ENV needs to be set manually for now.
20+
# See https://github.com/readthedocs/readthedocs.org/pull/11152/
21+
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs
2222

2323
sphinx:
2424
configuration: docs/source/conf.py

0 commit comments

Comments
 (0)