From 77f39c21e52a27123ecfa0e5081d206a4c0f6249 Mon Sep 17 00:00:00 2001 From: J-Alves Date: Fri, 2 Aug 2024 15:57:47 +0100 Subject: [PATCH] fix(docs): point poetry readthedocs virtual env RTD uses a mixture of poetry and pip to install packages in the build environment. In the past it was recommended to disable poetry from creating a fresh virtual environment. Instead, the expectation was that poetry would be able to detect it's current virtual environment and install the packages in the right place. This was recently updated to allow poetry to better allow dependcy management by poetry [1]. Remove this configuration and explicitly point Poetry to the virtual environment. [1] https://github.com/readthedocs/readthedocs.org/pull/11152 Signed-off-by: J-Alves Signed-off-by: Harrison Mutai Change-Id: I64e75410a0f14ff5edd91ea526d85ad108cb1a13 --- .readthedocs.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 11f9c40b..26a7f150 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -18,9 +18,8 @@ build: jobs: post_create_environment: - pip install poetry=="1.3.2" - - poetry config virtualenvs.create false post_install: - - poetry install --with doc + - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with doc sphinx: configuration: docs/conf.py