Skip to content

Conversation

@jiayuasu
Copy link
Member

@jiayuasu jiayuasu commented Jan 9, 2026

Did you read the Contributor Guide?

Is this PR related to a ticket?

  • No:
    • this is a CI update. The PR name follows the format [CI] my subject

What changes were proposed in this PR?

This pull request updates the Python packaging workflow to automate building and publishing both wheel and source distributions to PyPI when a GitHub Release is published. The workflow is restructured into separate jobs for building wheels, building source distributions, and uploading to PyPI, and now uses the latest versions of key actions.

Workflow automation and publishing:

  • The workflow is renamed to "Python build and publish wheels" and is now triggered both on code changes and when a GitHub Release is published, enabling automatic publishing to PyPI upon release. [1] [2]
  • A new upload_pypi job is added, which gathers built wheels and source distributions, and publishes them to PyPI using the pypa/gh-action-pypi-publish action, with appropriate permissions for Trusted Publishing.

Build process improvements:

  • The workflow is split into separate jobs: build_wheels (for wheels on multiple OSes) and build_sdist (for the source distribution using uv). [1] [2]
  • The pypa/cibuildwheel action is updated from version 3.3.0 to 3.3.1 for building wheels.

Linter configuration:

  • The linter configuration is updated to allow the use of the pypa/gh-action-pypi-publish action.

Did this PR include necessary documentation updates?

  • Yes, I have updated the documentation.

@jiayuasu jiayuasu requested a review from jbampton as a code owner January 9, 2026 06:44
@github-actions github-actions bot added docs github_actions Pull requests that update GitHub Actions code labels Jan 9, 2026
@jiayuasu jiayuasu merged commit ae283fd into master Jan 9, 2026
15 checks passed
@jiayuasu jiayuasu deleted the publish-to-pypi branch January 9, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant