I posted my own package to PyPI with reference to this article.
At this time, I tried to post the updated package
twine upload dist/*
HTTPError: 400 Client Error: File already exists. See https://pypi.org/help/#file-name-reuse for url: https://upload.pypi.org/legacy
Message was output and the upload could not be performed.
twine upload dist/*
Command uses the upload function of twine Attempts to post all whl files under dist.
I don't get an error for things I haven't posted yet, like ʻACO Crawler-0.2.0-py3-none-any.whz. I will try to post ʻACO Crawler-0.1.0-py3-none-any.whl
etc. that I have already posted again.
Therefore,
twine upload --skip-existing dist/*
With the above option, you won't get an error because you won't post anything that's already on PyPI.
Recommended Posts