-
Notifications
You must be signed in to change notification settings - Fork 387
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
Add scripts for building packages and publishing them to PyPi #1915
Conversation
0d96cf7
to
490a3a6
Compare
@AdeelH 👀 |
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.
Assuming the test publication works as expected, this looks good to me.
@@ -0,0 +1,27 @@ | |||
#!/bin/bash |
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 don't see anything that looks obviously wrong to me ... if the test publication works as expected, than it should be good.
for plugin in "${plugins[@]}"; do | ||
publish_plugin "$plugin" | ||
done | ||
|
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.
The only thing that I might suggest -- from a belt-and-suspenders point of view -- is to force a test publication before a real one. If the person says passes --test
then it will terminate after the test publication, if they do not then it will publish to testpypi then prompt them to inspect the published artifacts before proceeding with the real publication.
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.
To keep things simple, I've made it so that
--test
works as before- With no
--test
, you have to go through anActually publish to PyPi? (y/N)
prompt -y
bypasses the prompt (for when/if we choose to fully automate things)
dd9123e
to
e53b464
Compare
…#1915) * add pypi_build and pypi_publish scripts * update release instructions --------- Co-authored-by: Adeel Hassan <ahassan@element84.com>
Overview
This PR adds scripts to build and publish packages to PyPi, thus automating a manual and tedious part of the release process. It also updates the release instructions accordingly.
This PR is a step towards #1130.
Checklist
needs-backport
label if PR is bug fix that applies to previous minor releaseTesting Instructions