-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.github: Pypi release workflows #737
Conversation
a7f975e
to
17dd383
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not seeing anything obviously wrong with it.
17dd383
to
9cf14d2
Compare
Verify build for all major.minor versions from 3.8 till latest. Signed-off-by: Pieter De Gendt <[email protected]>
Add a package workflow with the latest python version to test creating a pypi release. Signed-off-by: Pieter De Gendt <[email protected]>
9cf14d2
to
ce049ec
Compare
Upload a pypi package when a Github release is published. Signed-off-by: Pieter De Gendt <[email protected]>
Update section on creating Pypi releases. Signed-off-by: Pieter De Gendt <[email protected]>
with: | ||
files: dist/*.whl | ||
|
||
- name: Publish package to PyPI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This last PyPI step depends only on the "Download" step, correct? Not on the gh-release step. It wasn't clear to me until I checked the documentation so maybe state that in a 1-line comment?
Actually, wait: shouldn't gh-release
be last, after pypi-publish
? What is its purpose, just a "backup" of the PyPI release, isn't it? In case of a failure/glitch, I think it's better to have the official PyPI release published without the backup rather than the opposite?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the same file but the gh-release step attaches it to the GitHub release, instead of uploading it manually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you missed my point. I'll submit a follow-up PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case of a failure/glitch, I think it's better to have the official PyPI release published without the backup rather than the opposite?
In case of a failure/glitch, you can retrigger the workflow to ensure that the full release workflow completes.
Add Github workflows to create Pypi packages and upload to Pypi when a release is published.