From cbc46bdf57145f0ca5700fc21ab4a8836230c5b8 Mon Sep 17 00:00:00 2001 From: hasansezertasan Date: Sat, 5 Dec 2026 01:22:00 +0300 Subject: [PATCH 1/2] fix(ci): install pinned doc requirements on Read the Docs --- .readthedocs.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 019d3345e..cd7a263d8 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -2,7 +2,7 @@ version: 2 build: os: "ubuntu-22.04" tools: - python: "3" + python: "3.12" apt_packages: - make @@ -10,7 +10,11 @@ build: commands: - git clone https://github.com/python/cpython.git venv/cpython/ + # Install the doc requirements of the commit `make` builds, not of main. + - git -C venv/cpython checkout "$(sed -n 's/^CPYTHON_CURRENT_COMMIT := //p' Makefile)" - python -m pip install -r venv/cpython/Doc/requirements.txt + # blurb 2.x rejects a malformed entry in the pinned commit's Misc/NEWS.d. + - python -m pip install "blurb<2" - make - mkdir -p _readthedocs/html/ - cp -r venv/cpython/Doc/build/html/* _readthedocs/html/ From 1b5a46579a35b459ee24de5f2bb043eed336ab66 Mon Sep 17 00:00:00 2001 From: hasansezertasan Date: Sat, 5 Dec 2026 01:23:50 +0300 Subject: [PATCH 2/2] fix(ci): avoid quoting in Read the Docs checkout command --- .readthedocs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index cd7a263d8..e72d85bc5 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -11,7 +11,7 @@ build: commands: - git clone https://github.com/python/cpython.git venv/cpython/ # Install the doc requirements of the commit `make` builds, not of main. - - git -C venv/cpython checkout "$(sed -n 's/^CPYTHON_CURRENT_COMMIT := //p' Makefile)" + - git -C venv/cpython checkout $(grep ^CPYTHON_CURRENT_COMMIT Makefile | cut -d= -f2) - python -m pip install -r venv/cpython/Doc/requirements.txt # blurb 2.x rejects a malformed entry in the pinned commit's Misc/NEWS.d. - python -m pip install "blurb<2"