Skip to content

Commit 42ca18b

Browse files
committed
Fix Read the Docs builds
Read the Docs builds began permanently failing on February 26, 2024. The differential diagnosis between success and failure seems to be that the last successful build used Poetry 1.7.1; the first failing build used Poetry 1.8.1. For reference, Poetry 1.8.1 was released on February 26, 2024. Read the Docs later updated its "Install dependencies with Poetry" documentation to note that Poetry needs a `$VIRTUAL_ENV` environment variable set. https://docs.readthedocs.com/platform/stable/build-customization.html#install-dependencies-with-poetry This change aligns the Read the Docs config with the documented fix, and simultaneously updates the build OS and Python version, which are both very old.
1 parent 49109f7 commit 42ca18b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.readthedocs.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ sphinx:
66
formats: all
77

88
build:
9-
os: ubuntu-20.04
9+
os: ubuntu-24.04
1010
tools:
11-
python: "3.9"
11+
python: "3.13"
1212
jobs:
13-
post_create_environment:
14-
- pip install poetry
15-
- poetry config virtualenvs.create false
1613
post_install:
17-
- poetry install --with docs
14+
- pip install poetry
15+
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs

0 commit comments

Comments
 (0)