-
Im trying to update my pypi package using this github action, passing from v1.0.0 to v1.0.2 but I get the next error: ERROR HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
File already exists. See https://pypi.org/help/#file-name-reuse for
more information. I dont have clear what I need to do to keep using this action and keep updating the package through this github action, I tried changing the version inside setup.cfg file, could someone help me to clarify this? thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You cannot publish files with the same name to PyPI. Even if you delete them, it won't let you. Yes, you should use a different version. Where you change it depends on what you use to build a package. |
Beta Was this translation helpful? Give feedback.
You cannot publish files with the same name to PyPI. Even if you delete them, it won't let you. Yes, you should use a different version. Where you change it depends on what you use to build a package.
If you're getting this error, this means that you didn't build the dists with new versions, maybe you're publishing an old commit. Or you use some sort of caching that also leaves the old files in the dists directory. That's for you to explore, this is absolutely out of the scope of this action — it just publishes whatever's in the directory. It is your responsibility to make sure that the folder contains what you intend to publish.