Skip to content

Commit

Permalink
update .readthedocs.yaml with correct support for poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
renae-r committed Jun 27, 2024
1 parent 2aa4615 commit b5271af
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 @@ -7,20 +7,18 @@ version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-20.04
os: ubuntu-22.04
tools:
python: "3.9"
jobs:
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 only dependencies including docs
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
- poetry install --with docs
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs
# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py

0 comments on commit b5271af

Please sign in to comment.