How to overwrite pypi package when doing upload from command line?

sorin picture sorin · Jan 11, 2014 · Viewed 11.5k times · Source

I want to automate the upload process bug in some cases the python setup.py upload fails because pypi server already have the save version uploaded.

How can I force it to upload, from the script (i know I can remove the old variant using the web interface).

Answer

Foobie Bletch picture Foobie Bletch · Sep 18, 2015

Here's an actual answer, not just me adding more pontification in the comments. Found this thread:

https://www.reddit.com/r/Python/comments/35xr2q/howto_overwrite_package_when_reupload_to_pypi/

That refers to this:

http://comments.gmane.org/gmane.comp.python.distutils.devel/22739

Saying it can't be done.

Also note the comment in the reddit thread about reading semver.org and incrementing the micro version for patches.