io icon indicating copy to clipboard operation
io copied to clipboard

Automatically publish release artifacts to PyPI

Open terrytangyuan opened this issue 5 years ago • 6 comments

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.

terrytangyuan avatar Jun 22 '20 15:06 terrytangyuan

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.

yongtang avatar Jun 22 '20 15:06 yongtang

Okay it seems like manual trigger is more reliable for now then.

terrytangyuan avatar Jun 22 '20 15:06 terrytangyuan

@terrytangyuan @yongtang if we are continuing with the manual process, can this be closed?

kvignesh1420 avatar Nov 09 '20 15:11 kvignesh1420

Yes

terrytangyuan avatar Nov 09 '20 15:11 terrytangyuan

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/.

terrytangyuan avatar Feb 05 '22 19:02 terrytangyuan

the draft approach in https://github.com/tensorflow/io/pull/1621#issuecomment-1030685498 sounds like a good start to me

kvignesh1420 avatar Feb 06 '22 08:02 kvignesh1420