ci: publish python dev packages to PyPI on main pushes - #292
Open
kmilodenisglez wants to merge 1 commit into
Open
kmilodenisglez wants to merge 1 commit into
kmilodenisglez wants to merge 1 commit into
Conversation
Signed-off-by: kmilo <kmilo.denis.glez@yandex.com>
Contributor
|
@ryjones @tock-ibm @denyeart @bestbeforetoday |
pfi79
approved these changes
Sep 15, 2026
|
Tick the box to add this pull request to the merge queue (same as
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@pfi79 Yes. I compared the Python workflow against the Node.js one.
The Python workflow already generates a unique PEP 440 dev version for non-release builds; the only missing piece is the publish condition, which currently requires
publish_release == 'true'(release tags only). I've aligned it with Node.js:github.ref == 'refs/heads/main' || needs.ci_checks.outputs.publish_release == 'true'Result:
main: publish the.dev<run_id>snapshot to PyPIThe artifact step now also covers manual
workflow_dispatchruns from non-main branches, mirroring Node's dry-run behavior.One operational detail before this merges:
Since this is a brand-new project name on PyPI, the first OIDC publish requires a "pending publisher" registration at pypi.org/manage/account/publishing/ — it can't be created from the repo via CI/CD for security reasons. Whoever registers it becomes the project Owner on PyPI, so it should probably be someone from the Hyperledger/LF side rather than me. Either the owner or the maintainer (if one exists) of the PyPI account or organization.
PyPI Trusted Publishing Setup Guide (For Maintainers)
Steps to Configure Trusted Publishing
Required Form Values
hyperledger-fabric-protoshyperledgerfabric-protospython-bindings.yml(exact filename in.github/workflows/)Once this is saved on PyPI, the first merged PR or release push will authenticate seamlessly via GitHub OIDC without needing long-lived PyPI API tokens.