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/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 c1c656d2068..db5f614a62a 100644 --- a/.github/workflows/update-libs-status.yaml +++ b/.github/workflows/update-libs-status.yaml @@ -6,6 +6,7 @@ on: - main paths: - "Lib/**" + - ".github/workflows/update-libs-status.yaml" workflow_dispatch: permissions: @@ -13,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: @@ -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 @@ -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