Due to my operational mistake, the previously created package was deleted, and now I am unable to update to a new version. I hope you can help me recover or initialize it.
PS H:\sdk\python_framework_sdk> twine upload dist/*
Uploading distributions to https://upload.pypi.org/legacy/
Enter your username: geekros
Enter your password:
Uploading robotchain-1.0.0-py3-none-any.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.3/7.3 kB • 00:00 • ?
WARNING Error during upload. Retry with the --verbose option for more details.
ERROR HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
This filename has already been used, use a different version. See https://pypi.org/help/#file-name-reuse for more information.
PyPI does not allow re-uploading a file with the exact same name even after the original file has been deleted.
So if you upload robotchain-1.0.0-py3-none-any.whl to PyPI, then delete it, you can not upload it again. That is why others have recommended you to change the version string (to a version string that has never been used before for that project), then try to upload again.
Assuming this is just the issue (as opposed to deletion of an entire project preventing any new uploads under that project name) you should be able to release post-releases of all the affected versions, and installers will treat them just like the originals, unless users have them pinned all the way down to the full version string/hash. Just add .post1 to the version in your project metadata, e.g. 1.0.0.post1, rebuild your sdists/wheels, and then re-upload them.
Alternatively, you might be able to reach out on the PyPI support issue tracker, but given a high volume of requests and a limited number of people who can fulfill them, and the fact that undeletion is not a normal request, it may not be possible or take a long time, so uploading post releases is likely to be the quickest and most expedient solution.