From e76da2198341dd3bcd266708d576d414ca798dd2 Mon Sep 17 00:00:00 2001 From: Brian Pugh Date: Thu, 25 Apr 2024 13:04:20 -0700 Subject: [PATCH] Update .readthedocs.yaml --- .readthedocs.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 3d84170..d76941f 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -8,18 +8,19 @@ version: 2 build: os: "ubuntu-22.04" tools: - python: "3.8" + python: "3.10" 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 + - poetry self add poetry-dynamic-versioning post_install: # Install dependencies with 'docs' dependency group # https://python-poetry.org/docs/managing-dependencies/#dependency-groups - - poetry install --with docs + # 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 --without=dev --with=docs # Build documentation in the docs/ directory with Sphinx sphinx: