From e42b903be42fb201d7a4cfd084b8ba29a955ffb5 Mon Sep 17 00:00:00 2001 From: Liam Brady Date: Thu, 26 Jun 2025 09:00:54 -0400 Subject: [PATCH] readthedocs: fix doc build failures For some reason, poetry does not install dependencies to the correct site-package in the read the docs. As a temporary fix, we can `pip freeze` the packages that poetry installs and reinstall them to the correct site-packages by directly using pip. Signed-off-by: Liam Brady --- readthedocs.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/readthedocs.yml b/readthedocs.yml index c59457b..b265877 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -8,9 +8,12 @@ build: # Install poetry - pip install poetry~=1.2 # Tell poetry to not use a virtual environment - - poetry config virtualenvs.create false + #- poetry config virtualenvs.create false post_install: # Install dependencies - poetry install --with doc + # Install dependencies to the correct site-packages + - poetry run pip freeze > reqs.txt + - pip install --upgrade -r reqs.txt sphinx: configuration: doc/source/conf.py