I used this guide to install a new package on PyPi.
Now, I want to update the package. Since I found no guide for this, I tried to do it myself: I updated the versi
I found out what my problem was - I did not delete the old files in the dist folder, so the uploader tried to upload them before the new files, and failed. The solution was to:
a. Delete all files in the dist folder.
b. Update the version number in the setup.py file.
c. Re-create the wheels:
python3 setup.py sdist bdist_wheel
d. Re-upload the new files:
twine upload dist/*
Sorry if i am replying too late but came across the same problem and found a way not to delete the existing dist folder:
after updating the version in setup.py and recreating the wheel file,
twine upload --skip-existing dist/*
will skip the distribution that already exist and upload the newer ones