Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude/scripts/setup-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" ] ||
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/lib-deps-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
19 changes: 8 additions & 11 deletions .github/workflows/update-libs-status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ on:
- main
paths:
- "Lib/**"
- ".github/workflows/update-libs-status.yaml"
workflow_dispatch:

permissions:
contents: read
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:
Expand All @@ -28,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
Expand All @@ -62,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

<!--
Quick guideline for Copilot:
# 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
# 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
# Pick a library or test to update. Probably user give one.
# Run \`python3 scripts/update_lib quick <name>\`
# A commit is automatically created. push the commit.
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/upgrade-pylib.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .github/workflows/upgrade-pylib.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ cache:
path: cpython

env:
PYTHON_VERSION: "v3.15.0"
ISSUE_ID: "6839"
PYTHON_VERSION: "v3.15.2"
ISSUE_ID: "9852"
---

# Upgrade Python Library
Expand Down
Loading