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

怎甘沉沦 提交于 2019-12-08 14:32:00

问题


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).


回答1:


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.



来源:https://stackoverflow.com/questions/21064581/how-to-overwrite-pypi-package-when-doing-upload-from-command-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!