Skip to content

ci(release): overhaul pypi publishing pipeline with modern trusted workflow#24

Merged
vvanglro merged 2 commits intomainfrom
py
Jan 29, 2026
Merged

ci(release): overhaul pypi publishing pipeline with modern trusted workflow#24
vvanglro merged 2 commits intomainfrom
py

Conversation

@vvanglro
Copy link
Member

  • adopt pypa's trusted publishing model eliminating api tokens
  • introduce matrix-based wheel synthesis spanning linux, macos, windows with aarch64 and armv7
  • bump maturin-action to stable toolchain, drop explicit version pinning
  • replace legacy twine upload with native pypi-publish v1 action
  • unify artifact handling through v4 upload/download with pattern matching
  • extend interpreter pool to 3.13/3.14 pre-releases, drop eol 3.8

BREAKING CHANGE: python 3.8 support sunset; minimum runtime now 3.9

…rkflow

- adopt pypa's trusted publishing model eliminating api tokens
- introduce matrix-based wheel synthesis spanning linux, macos, windows with aarch64 and armv7
- bump maturin-action to stable toolchain, drop explicit version pinning
- replace legacy twine upload with native pypi-publish v1 action
- unify artifact handling through v4 upload/download with pattern matching
- extend interpreter pool to 3.13/3.14 pre-releases, drop eol 3.8

BREAKING CHANGE: python 3.8 support sunset; minimum runtime now 3.9
@gemini-code-assist
Copy link

Summary of Changes

Hello @vvanglro, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly overhauls the PyPI publishing pipeline to leverage modern, secure practices. It transitions to PyPA's trusted publishing model, enhancing security by removing API token dependencies. The changes also expand the build matrix for wheel distribution, ensuring broader platform and architecture compatibility, and update Python version support to include newer pre-releases while deprecating an older, unsupported version.

Highlights

  • PyPI Publishing Model: Adopted PyPA's trusted publishing model, eliminating the need for API tokens and enhancing security.
  • Wheel Synthesis: Introduced a matrix-based wheel synthesis across Linux, macOS, and Windows, including aarch64 and armv7 architectures for broader compatibility.
  • Action Updates: Updated maturin-action to use a stable toolchain and replaced the legacy twine upload with the native pypi-publish v1 action.
  • Artifact Handling: Standardized artifact handling using v4 upload/download actions with pattern matching for improved efficiency.
  • Python Version Support: Extended interpreter support to Python 3.13 and 3.14 pre-releases while dropping support for the end-of-life Python 3.8, making Python 3.9 the new minimum runtime.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Ignored Files
  • Ignored by pattern: .github/workflows/** (2)
    • .github/workflows/release.yml
    • .github/workflows/test.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request modernizes the PyPI publishing pipeline by adopting trusted publishing and updating the supported Python versions. The changes in pyproject.toml correctly remove support for Python 3.8 and add classifiers for the upcoming 3.13 and 3.14 versions, which aligns with the PR's goal. I've suggested one improvement for forward-compatibility regarding the Python version specifier.

{name = "vvanglro", email = "vvanglro@gmail.com"}
]
requires-python = ">=3.8"
requires-python = ">=3.9"

Choose a reason for hiding this comment

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

medium

To improve forward-compatibility, it's recommended to specify an upper bound on the Python version. This prevents the package from being installed on future major Python versions (like Python 4) that may introduce breaking changes. While your package might work, explicitly capping the version range is a safer, forward-looking approach.

Suggested change
requires-python = ">=3.9"
requires-python = ">=3.9, <4"

@vvanglro vvanglro merged commit a84ab37 into main Jan 29, 2026
19 checks passed
@vvanglro vvanglro deleted the py branch January 29, 2026 14:22
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.

1 participant