从命令行上传时如何覆盖pypi包? [英] How to overwrite pypi package when doing upload from command line?

查看:177
本文介绍了从命令行上传时如何覆盖pypi包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在某些情况下,由于pypi服务器已经上传了保存版本,我想自动执行 python setup.py upload 失败。

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

推荐答案

这是一个实际的答案,不仅仅是我在评论中添加了更多内容。找到了该线程:

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/

这是指:

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

说无法完成。

还请注意reddit线程中有关读取semver.org并增加补丁的微型版本的评论。

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

这篇关于从命令行上传时如何覆盖pypi包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆