From 5383a88b93abead45ab3479536d1b1516d9be3f8 Mon Sep 17 00:00:00 2001 From: Harrison Mutai Date: Thu, 1 Aug 2024 15:00:48 +0000 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 Change-Id: I58e49ba6f6d122e70bbcf1dbb10220881a09faf3 Signed-off-by: Harrison Mutai --- .readthedocs.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 7b6a1f5cf..2d1afab82 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2023, Arm Limited. All rights reserved +# Copyright (c) 2023-2024, Arm Limited. All rights reserved # # SPDX-License-Identifier: BSD-3-Clause # @@ -19,9 +19,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 docs sphinx: configuration: docs/conf.py