From 126b4b7141cdfab43db67f28e8b5c094a42ba026 Mon Sep 17 00:00:00 2001 From: Codex Date: Sun, 15 Nov 2026 16:49:13 +0900 Subject: [PATCH 1/3] Use CPython 3.15.2 for future library upgrades Regenerate the workflow frontmatter hash while preserving independently updated action pins. Assisted-by: OpenAI Codex:GPT-6.1 --- .github/workflows/upgrade-pylib.lock.yml | 4 ++-- .github/workflows/upgrade-pylib.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/upgrade-pylib.lock.yml b/.github/workflows/upgrade-pylib.lock.yml index 49b3fa7414a..82acad52840 100644 --- a/.github/workflows/upgrade-pylib.lock.yml +++ b/.github/workflows/upgrade-pylib.lock.yml @@ -24,7 +24,7 @@ # Pick an out-of-sync Python library from the todo list and upgrade it # by running `scripts/update_lib quick`, then open a pull request. # -# frontmatter-hash: bf5b6c1bf4e49141df567a8ff69cce1fc96faa991e1cc353ed6a77aa7c2ba719 +# frontmatter-hash: 88a590250592f3459ce657eca1f29e2743b6c2fa42aeb4671991e5238b4b459e name: "Upgrade Python Library" "on": @@ -44,7 +44,7 @@ run-name: "Upgrade Python Library" env: ISSUE_ID: "6839" - PYTHON_VERSION: v3.15.0 + PYTHON_VERSION: v3.15.2 # Cache configuration from frontmatter was processed and added to the main job steps diff --git a/.github/workflows/upgrade-pylib.md b/.github/workflows/upgrade-pylib.md index 238c0d43bef..e05128b7ff4 100644 --- a/.github/workflows/upgrade-pylib.md +++ b/.github/workflows/upgrade-pylib.md @@ -50,7 +50,7 @@ cache: path: cpython env: - PYTHON_VERSION: "v3.15.0" + PYTHON_VERSION: "v3.15.2" ISSUE_ID: "6839" --- From de962468446c72d4e0be26ffd3e24e362ea8c95e Mon Sep 17 00:00:00 2001 From: Codex Date: Sun, 15 Nov 2026 17:01:49 +0900 Subject: [PATCH 2/3] Align library sync entry points with CPython 3.15.2 Refresh the generated library status when its source version changes. Assisted-by: OpenAI Codex:GPT-6.1 --- .claude/scripts/setup-env.sh | 2 +- .github/workflows/update-libs-status.yaml | 1 + .python-version | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.claude/scripts/setup-env.sh b/.claude/scripts/setup-env.sh index 97e38f22976..17bc083fc82 100755 --- a/.claude/scripts/setup-env.sh +++ b/.claude/scripts/setup-env.sh @@ -39,7 +39,7 @@ else fi # 2. Ensure the CPython source matches the target (needed for scripts/update_lib) -PYTHON_VERSION="v3.15.0" +PYTHON_VERSION="v3.15.2" if [ ! -e "cpython" ]; then git clone --depth 1 --branch "$PYTHON_VERSION" https://github.com/python/cpython.git cpython elif [ ! -d "cpython/.git" ] || [ ! -d "cpython/Lib" ] || diff --git a/.github/workflows/update-libs-status.yaml b/.github/workflows/update-libs-status.yaml index c1c656d2068..2302da53b82 100644 --- a/.github/workflows/update-libs-status.yaml +++ b/.github/workflows/update-libs-status.yaml @@ -6,6 +6,7 @@ on: - main paths: - "Lib/**" + - ".python-version" workflow_dispatch: permissions: diff --git a/.python-version b/.python-version index f02113fe87c..861845e450f 100644 --- a/.python-version +++ b/.python-version @@ -1 +1 @@ -3.15.0 +3.15.2 From 3ad9018a9854fbd25bc3d702b4ae5b9af83759c1 Mon Sep 17 00:00:00 2001 From: Codex Date: Sun, 15 Nov 2026 17:38:40 +0900 Subject: [PATCH 3/3] Separate library source baseline from CI runtime and track Python 3.15 updates Keep the existing runtime reference while synchronizing Lib from 3.15.2. Route generated status and upgrade PRs to issue #9852. Assisted-by: OpenAI Codex:GPT-6.1 --- .github/workflows/lib-deps-check.yaml | 12 +++++------- .github/workflows/update-libs-status.yaml | 20 ++++++++------------ .github/workflows/upgrade-pylib.lock.yml | 4 ++-- .github/workflows/upgrade-pylib.md | 2 +- .python-version | 2 +- 5 files changed, 17 insertions(+), 23 deletions(-) diff --git a/.github/workflows/lib-deps-check.yaml b/.github/workflows/lib-deps-check.yaml index 5f301fa338e..ba6fe1b37c9 100644 --- a/.github/workflows/lib-deps-check.yaml +++ b/.github/workflows/lib-deps-check.yaml @@ -8,6 +8,10 @@ on: permissions: {} +env: + # Keep aligned with the upgrade-pylib and update-libs-status source baseline. + PYTHON_VERSION: "3.15.2" + concurrency: group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number }} cancel-in-progress: true @@ -40,18 +44,12 @@ jobs: # Checkout only Lib/ directory from PR head for accurate comparison git checkout "$PR_HEAD_SHA" -- Lib/ - - name: Get target CPython version - id: cpython-version - run: | - version=$(cat .python-version) - echo "version=${version}" >> "$GITHUB_OUTPUT" - - name: Checkout CPython uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: repository: python/cpython path: cpython - ref: "v${{ steps.cpython-version.outputs.version }}" + ref: "v${{ env.PYTHON_VERSION }}" fetch-depth: 1 persist-credentials: false diff --git a/.github/workflows/update-libs-status.yaml b/.github/workflows/update-libs-status.yaml index 2302da53b82..db5f614a62a 100644 --- a/.github/workflows/update-libs-status.yaml +++ b/.github/workflows/update-libs-status.yaml @@ -6,7 +6,7 @@ on: - main paths: - "Lib/**" - - ".python-version" + - ".github/workflows/update-libs-status.yaml" workflow_dispatch: permissions: @@ -14,7 +14,9 @@ permissions: issues: write env: - ISSUE_ID: "6839" + ISSUE_ID: "9852" + # Library source baseline, independent of the CI interpreter in .python-version. + PYTHON_VERSION: "3.15.2" jobs: update-issue: @@ -29,20 +31,13 @@ jobs: sparse-checkout: |- Lib scripts/update_lib - .python-version - - - name: Get target CPython version - id: cpython-version - run: | - version=$(cat rustpython/.python-version) - echo "version=${version}" >> "$GITHUB_OUTPUT" - name: Clone CPython uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: repository: python/cpython path: cpython - ref: "v${{ steps.cpython-version.outputs.version }}" + ref: "v${{ env.PYTHON_VERSION }}" persist-credentials: false sparse-checkout: | Lib @@ -63,14 +58,15 @@ jobs: ## Summary - Check \`scripts/update_lib\` for tools. As a note, the current latest Python version is \`${{ steps.cpython-version.outputs.version }}\`. + Check \`scripts/update_lib\` for tools. As a note, the current latest Python version is \`${{ env.PYTHON_VERSION }}\`. Previous versions' issues as reference + - 3.14: #6839 - 3.13: #5529