Skip to content

Commit 9d209ae

Browse files
youknowdotcodex
andauthored
Use CPython 3.15.2 for future library upgrades (#9851)
* 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 * 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 * 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 --------- Co-authored-by: Codex <[email protected]>
1 parent d77efa9 commit 9d209ae

5 files changed

Lines changed: 19 additions & 24 deletions

File tree

‎.claude/scripts/setup-env.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ else
3939
fi
4040

4141
# 2. Ensure the CPython source matches the target (needed for scripts/update_lib)
42-
PYTHON_VERSION="v3.15.0"
42+
PYTHON_VERSION="v3.15.2"
4343
if [ ! -e "cpython" ]; then
4444
git clone --depth 1 --branch "$PYTHON_VERSION" https://github.com/python/cpython.git cpython
4545
elif [ ! -d "cpython/.git" ] || [ ! -d "cpython/Lib" ] ||

‎.github/workflows/lib-deps-check.yaml‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88

99
permissions: {}
1010

11+
env:
12+
# Keep aligned with the upgrade-pylib and update-libs-status source baseline.
13+
PYTHON_VERSION: "3.15.2"
14+
1115
concurrency:
1216
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number }}
1317
cancel-in-progress: true
@@ -40,18 +44,12 @@ jobs:
4044
# Checkout only Lib/ directory from PR head for accurate comparison
4145
git checkout "$PR_HEAD_SHA" -- Lib/
4246
43-
- name: Get target CPython version
44-
id: cpython-version
45-
run: |
46-
version=$(cat .python-version)
47-
echo "version=${version}" >> "$GITHUB_OUTPUT"
48-
4947
- name: Checkout CPython
5048
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
5149
with:
5250
repository: python/cpython
5351
path: cpython
54-
ref: "v${{ steps.cpython-version.outputs.version }}"
52+
ref: "v${{ env.PYTHON_VERSION }}"
5553
fetch-depth: 1
5654
persist-credentials: false
5755

‎.github/workflows/update-libs-status.yaml‎

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@ on:
66
- main
77
paths:
88
- "Lib/**"
9+
- ".github/workflows/update-libs-status.yaml"
910
workflow_dispatch:
1011

1112
permissions:
1213
contents: read
1314
issues: write
1415

1516
env:
16-
ISSUE_ID: "6839"
17+
ISSUE_ID: "9852"
18+
# Library source baseline, independent of the CI interpreter in .python-version.
19+
PYTHON_VERSION: "3.15.2"
1720

1821
jobs:
1922
update-issue:
@@ -28,20 +31,13 @@ jobs:
2831
sparse-checkout: |-
2932
Lib
3033
scripts/update_lib
31-
.python-version
32-
33-
- name: Get target CPython version
34-
id: cpython-version
35-
run: |
36-
version=$(cat rustpython/.python-version)
37-
echo "version=${version}" >> "$GITHUB_OUTPUT"
3834
3935
- name: Clone CPython
4036
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4137
with:
4238
repository: python/cpython
4339
path: cpython
44-
ref: "v${{ steps.cpython-version.outputs.version }}"
40+
ref: "v${{ env.PYTHON_VERSION }}"
4541
persist-credentials: false
4642
sparse-checkout: |
4743
Lib
@@ -62,14 +58,15 @@ jobs:
6258
6359
## Summary
6460
65-
Check \`scripts/update_lib\` for tools. As a note, the current latest Python version is \`${{ steps.cpython-version.outputs.version }}\`.
61+
Check \`scripts/update_lib\` for tools. As a note, the current latest Python version is \`${{ env.PYTHON_VERSION }}\`.
6662
6763
Previous versions' issues as reference
64+
- 3.14: #6839
6865
- 3.13: #5529
6966
7067
<!--
7168
Quick guideline for Copilot:
72-
# Clone \`github.com/python/cpython\` \`${{ steps.cpython-version.outputs.version }}\` tag under RustPython working dir with depth 1 option; never 3.14.0 or 3.14.1 or 3.14.2
69+
# Clone \`github.com/python/cpython\` \`${{ env.PYTHON_VERSION }}\` tag under RustPython working dir with depth 1 option; never 3.14.0 or 3.14.1 or 3.14.2
7370
# Pick a library or test to update. Probably user give one.
7471
# Run \`python3 scripts/update_lib quick <name>\`
7572
# A commit is automatically created. push the commit.

‎.github/workflows/upgrade-pylib.lock.yml‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.github/workflows/upgrade-pylib.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ cache:
5050
path: cpython
5151

5252
env:
53-
PYTHON_VERSION: "v3.15.0"
54-
ISSUE_ID: "6839"
53+
PYTHON_VERSION: "v3.15.2"
54+
ISSUE_ID: "9852"
5555
---
5656

5757
# Upgrade Python Library

0 commit comments

Comments
 (0)