From 85a99b766c9974ccb6e90defe44ba7aad0d756ea Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Sun, 21 Jun 2026 14:33:42 +0100 Subject: [PATCH 1/3] RTD Previews: Get correct base branch for backports (GH-150690) (cherry picked from commit 082ac30eaf51b9b9c218b81b4db71628a487d6c8) Co-authored-by: Stan Ulbrych --- .readthedocs.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 3b8a30c0251873c..038417e4bb34385 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -11,19 +11,21 @@ build: os: ubuntu-24.04 tools: python: "3" + apt_packages: + - jq jobs: - post_checkout: + post_system_dependencies: # https://docs.readthedocs.com/platform/stable/guides/build/skip-build.html#skip-builds-based-on-conditions # - # Cancel building pull requests when there aren't changes in the Doc + # Cancel building pull requests when there are no changes in the Doc # directory or RTD configuration, or if we can't cleanly merge the base # branch. - | set -eEux; if [ "$READTHEDOCS_VERSION_TYPE" = "external" ]; then - base_branch=main; + base_branch=$(wget -qO- "https://api.github.com/repos/python/cpython/pulls/$READTHEDOCS_VERSION" | jq -er ".base.ref"); git fetch --depth=50 origin $base_branch:origin-$base_branch; for attempt in $(seq 10); do From 0de3331aa5a446efdaaeab9e1d8119673140e657 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Sun, 21 Jun 2026 18:31:57 +0100 Subject: [PATCH 2/3] Testing --- Doc/README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/README.rst b/Doc/README.rst index 2d1148753e0c6bb..6c3ba4a2c9008c2 100644 --- a/Doc/README.rst +++ b/Doc/README.rst @@ -1,7 +1,7 @@ Python Documentation README ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -This directory contains the reStructuredText (reST) sources to the Python +This directory contains the reStructuredText (reST) sources for the Python documentation. You don't need to build them yourself, `prebuilt versions are available `_. From 93cd34f3c0839557c5df761bf82214fb93039e17 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Sun, 21 Jun 2026 18:43:12 +0100 Subject: [PATCH 3/3] Technically a typo but let's leave it for now --- Doc/README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/README.rst b/Doc/README.rst index 6c3ba4a2c9008c2..2d1148753e0c6bb 100644 --- a/Doc/README.rst +++ b/Doc/README.rst @@ -1,7 +1,7 @@ Python Documentation README ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -This directory contains the reStructuredText (reST) sources for the Python +This directory contains the reStructuredText (reST) sources to the Python documentation. You don't need to build them yourself, `prebuilt versions are available `_.