A guide for updating packages on PyPi
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
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:
Delete all files in the
dist
folder.Update the version number in the
setup.py
file.Re-create the wheels:
python3 setup.py sdist bdist_wheel
Re-upload the new files:
twine upload dist/*
For Windows (I am on Windows 10), @Erel Segal-Halevi's answers doesn't work. Following worked for me.
c. Re-create the wheels:
py setup.py sdist bdist_wheel
d. Re-upload the new files:
py -m twine upload dist/*