Skip to content

Commit

Permalink
Update RTD config to have poetry properly use RTD virtual env
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers committed Jun 28, 2024
1 parent 3d44ea1 commit ccb3b28
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ build:
jobs:
post_create_environment:
- pip install poetry
- poetry config virtualenvs.create false
post_install:
# Install dependencies with 'docs' dependency group
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
- poetry install --with docs
# Instructs Poetry to use RTD venv
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs

sphinx:
configuration: docs/conf.py

0 comments on commit ccb3b28

Please sign in to comment.