Skip to content

Fix upgrade-pylib workflow to use Python 3.14#7216

Merged
youknowone merged 3 commits intomain-ce004daa04f185e8from
copilot/sub-pr-7215
Feb 24, 2026
Merged

Fix upgrade-pylib workflow to use Python 3.14#7216
youknowone merged 3 commits intomain-ce004daa04f185e8from
copilot/sub-pr-7215

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 24, 2026

The upgrade-pylib workflow was using Python 3.12, which cannot parse Python 3.14 syntax (e.g., PEP 695 type aliases) present in newer CPython test files. This caused the automated test failure marking step to silently skip, requiring manual workarounds during library upgrades.

Changes

  • .github/workflows/upgrade-pylib.lock.yml: Bump python-version from '3.12' to '3.14'
  • .github/workflows/upgrade-pylib.md: Bump runtimes.python.version from "3.12" to "3.14" so the source workflow definition matches the lockfile

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
Copilot AI changed the title [WIP] Update annotationlib to version 3.14.3 Fix upgrade-pylib workflow to use Python 3.14 Feb 24, 2026
@youknowone
Copy link
Copy Markdown
Member

@copilot Do you fix only lock.yml, but not the source?

Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Feb 24, 2026

@copilot Do you fix only lock.yml, but not the source?

Good catch — I’ve now updated the source workflow too in 3f8cdc0 (.github/workflows/upgrade-pylib.md runtime Python version is now 3.14, matching the lockfile). No UI changes; screenshot: N/A.

@youknowone youknowone marked this pull request as ready for review February 24, 2026 07:21
@youknowone youknowone merged commit 8c12dc3 into main-ce004daa04f185e8 Feb 24, 2026
@youknowone youknowone deleted the copilot/sub-pr-7215 branch February 24, 2026 07:22
youknowone pushed a commit to youknowone/RustPython that referenced this pull request Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants