Skip to content

Add automated Python version update workflow#594

Open
hashhar wants to merge 1 commit intotrinodb:masterfrom
hashhar:hashhar/python-version-updates
Open

Add automated Python version update workflow#594
hashhar wants to merge 1 commit intotrinodb:masterfrom
hashhar:hashhar/python-version-updates

Conversation

@hashhar
Copy link
Member

@hashhar hashhar commented Mar 6, 2026

Description

Add a scheduled GitHub Action that keeps the project's Python version support matrix and metadata up to date without manual PRs.

Non-technical explanation

Release notes

(x) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
( ) Release notes are required, with the following suggested text:

* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Mar 6, 2026
@hashhar hashhar force-pushed the hashhar/python-version-updates branch 3 times, most recently from 3614c6b to f308a38 Compare March 6, 2026 15:54
@hashhar hashhar requested a review from Copilot March 6, 2026 18:50
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a scheduled GitHub Action to automatically update the repository’s supported Python version metadata (packaging classifiers, CI matrices, and tooling config) based on the official Python release cycle data.

Changes:

  • Introduces a monthly scheduled + manually triggerable workflow that runs an update script and opens/updates a PR from a bot branch.
  • Adds a Python script that fetches Python’s release-cycle JSON and updates setup.py, tox.ini, CI/release workflows, README, and pre-commit config accordingly.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
.github/workflows/update-python-versions.yml New scheduled workflow to run the updater, push a bot branch, and create/update a PR.
.github/scripts/update_python_versions.py New updater script that fetches Python lifecycle data and rewrites version-related config across the repo.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hashhar hashhar force-pushed the hashhar/python-version-updates branch 2 times, most recently from 9fb8b7b to 12e1842 Compare March 7, 2026 21:58
@hashhar hashhar requested review from damian3031 and wendigo March 10, 2026 16:52
Add a scheduled GitHub Action that keeps the project's Python version
support matrix and metadata up to date without manual PRs.
@hashhar hashhar force-pushed the hashhar/python-version-updates branch from 12e1842 to 5c4e785 Compare March 10, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants