From 7d4c904b26ba9cb1209b722bcd00b473a50b399b Mon Sep 17 00:00:00 2001 From: Yanjun Qi / Jane Date: Fri, 14 Aug 2026 16:58:43 -0400 Subject: [PATCH] Fix ReadTheDocs build config: deprecated OS image, stale Python pin ReadTheDocs builds have been failing near-instantly (~2s, a config-level failure, not a real Sphinx error) since setup.py's python_requires was bumped to >=3.9 (PR #833). Two problems: - build.os was pinned to ubuntu-20.04, which ReadTheDocs has since deprecated. - build.tools.python was pinned to "3.8", which no longer satisfies textattack's own python_requires >=3.9 when the docs build installs the package itself (python.install's `path: .` entry). Bumped to ubuntu-24.04 / Python 3.11, matching what .github/workflows/make-docs.yml already uses successfully in CI. Co-Authored-By: Claude Sonnet 5 --- .readthedocs.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index cc50a4d1..47fd6a89 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -7,9 +7,9 @@ version: 2 # Set the OS, Python version and other tools you might need build: - os: ubuntu-20.04 + os: ubuntu-24.04 tools: - python: "3.8" + python: "3.11" # You can also specify other tool versions: # nodejs: "20" # rust: "1.70"