Description
When following this guide I ran into a problem related to #777.
The point is that you cannot upload packages to pypi (or test.pypi) with the same (version) name. This definitely happens when uploading to test.pypi on every push. The workflow from this tutorial therefore fails even when running it for a second time with the following message:
This filename has already been used, use a different version.
A solution is given by @bhazelton with the script from RadioAstronomySoftwareGroup/pyuvdata#931: https://gist.github.com/plaplant/0902f09e59166bac742bbd554f3cd2f9/raw/make_dev_version.sh
However this raises another issue (the one of filling up test pypi space) which is reported in #777.
Another solution (as implemented in the same PR mentioned above) is to only publish on test.pypi for tagged versions, same as for pypi. However this defeats the purpose of publishing to test.pypi as the same package is also directly published to pypi.