Skip to content

Commit

Permalink
Update RTD poetry install instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins committed Sep 10, 2024
1 parent 4226e66 commit 82c7b77
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,16 @@ build:
tools:
python: "3.12"
jobs:
post_install:
post_create_environment:
# Install poetry
# https://python-poetry.org/docs/#installing-manually
- pip install poetry==1.8.3
- poetry config virtualenvs.create false
- poetry install --with doc
post_install:
# Install dependencies with 'docs' dependency group
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
# 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 --with doc

# Build documentation in the "docs/" directory with Sphinx
sphinx:
Expand Down

0 comments on commit 82c7b77

Please sign in to comment.