From b5271afe5942613312e08fefe3a99ca7db50b620 Mon Sep 17 00:00:00 2001 From: renae-r Date: Thu, 27 Jun 2024 12:23:18 -0500 Subject: [PATCH] update .readthedocs.yaml with correct support for poetry --- .readthedocs.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 6bed403..d3f0449 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -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