Skip to content

Commit

Permalink
Updates readthedocs.yaml build commands
Browse files Browse the repository at this point in the history
- Change pip install command to use python -m pip
- Modify poetry install command to set virtual environment path before installing with docs group.
  • Loading branch information
isFakeAccount committed Jun 16, 2024
1 parent 71c583b commit 3a37e48
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ build:
post_create_environment:
# Install poetry
# https://python-poetry.org/docs/#installing-manually
- pip install poetry
# Tell poetry to not use a virtual environment
- poetry config virtualenvs.create false
- python -m pip install poetry
post_install:
# Install dependencies with 'docs' dependency group
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
- poetry install --with docs
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs

sphinx:
configuration: docs/conf.py
configuration: docs/conf.py

0 comments on commit 3a37e48

Please sign in to comment.