Skip to content

GitHub Actions tutorial: Problem with equal version names when uploading to test.pypi #804

Open
@JaroCamphuijsen

Description

@JaroCamphuijsen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: enhancementA self-contained enhancement or new featuretype: questionA user question that needs/needed an answer

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions