-
Notifications
You must be signed in to change notification settings - Fork 3
Automated PyPi Publish #48
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
Conversation
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 it is not a good idea to post to PyPI on every push to develop
, or even pushes to main
. We've recently encountered reasons to push to main
but not issue a release, e.g. for updating Github templates.
Please rescope this action to only push on generating a release. Releases should be documented, and I'd like to know what the tie is between Github's release description box and an automated PyPI upload.
You added these steps into ci.yml
. Would it be appropriate to instead create a file cd.yml
, to emphasize the Delivery part of CI/CD?
I also see a "legacy" term I don't quite understand in the twine
command. Is there documentation you followed to generate these GIthub Actions?
So it only pushes to PyPi when tagged, but it builds the wheels and maintains them in the workflow for manual download if desired, though I can remove that part if it doesn't make sense. The description is defined in We can split the pipeline into CI vs CD, but it makes the triggering a bit more complicated if we (and I assume we do) want the tests to run before packaging and uploading to PyPi. We could alternatively update the name of the file to something more generic such as There is, and I have to find it, but the short of it was that the GitHub Action for uploading to PyPi didn't work the way I expected it to when setting up the automated process for SQLite Dissect and had followed conventions for utilizing |
Re:
Can you explain why the last patch removed a tag constraint? |
It removed it from the build, but not from the push. It only gets pushed to PyPi on tags, but still builds the wheels locally on every pipeline execution. |
Thank you, I'm now good on this concern. Back to prior replies:
I was a bit confused on the
Oh right, I left that as an ancient TODO, because I'm not sure how it'll display. I'll try using
I personally prefer
I saw the Summary: Let's settle on the name of the YAML file, and then I'm fine with this merging. I might have another PR to revise the documentation render after trying the test PyPI service. |
develop
ormain
Note, a GitHub Actions secret is required to be created called
PYPI_API_TOKEN