io
io copied to clipboard
Automatically publish release artifacts to PyPI
Currently the process to upload artifacts to PyPI is manual. We can consider doing this automatically and leverage something like pypa/gh-action-pypi-publish to publish them to PyPI as part of our GitHub Actions pipeline.
We could automate though a manual trigger (vs. PR push) might still be needed.
The GitHub Actions is not super reliable, and PyPI.org has one issue of you cannot override once a pip is pushed. On PyPI.org you can only bump a new version. The problematic scenario is that when we push or tag a commit, GitHub Actions fails half way then we will have to abandon a version and skip to a new version.
Okay it seems like manual trigger is more reliable for now then.
@terrytangyuan @yongtang if we are continuing with the manual process, can this be closed?
Yes
Adding to @yongtang's point https://github.com/tensorflow/io/pull/1621#issuecomment-1030685498.
Another check is to release the draft release to https://test.pypi.org/.
the draft approach in https://github.com/tensorflow/io/pull/1621#issuecomment-1030685498 sounds like a good start to me