From 2753d240b09f5273e748c64577ecf46812a6e291 Mon Sep 17 00:00:00 2001 From: Fabian Gebhart <16943048+fgebhart@users.noreply.github.com> Date: Thu, 31 Oct 2024 14:21:56 +0100 Subject: [PATCH] build: enhance rtd config file to support poetry extra doc deps (#191) --- .readthedocs.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index beb1159..4049ff2 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -9,10 +9,13 @@ build: os: ubuntu-22.04 tools: python: "3.11" - # You can also specify other tool versions: - # nodejs: "20" - # rust: "1.70" - # golang: "1.20" + # see https://browniebroke.com/blog/specify-docs-dependency-groups-with-poetry-and-read-the-docs/ + jobs: + post_create_environment: + - pip install poetry + - poetry config virtualenvs.create false + post_install: + - poetry install --extras docs python: install: