推到nexus,我得到“存储库路径在初始“/"之后必须有另一个“/""; [英] pushing to nexus, I get "Repository path must have another '/' after initial '/'"
本文介绍了推到nexus,我得到“存储库路径在初始“/"之后必须有另一个“/"";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当运行 python setup.py bdist_wheel upload -r ournexus
时,我得到存储库路径在初始 '/' 之后必须有另一个 '/'".
When running python setup.py bdist_wheel upload -r ournexus
I get "Repository path must have another '/' after initial '/'".
我正在尝试推送到公司关系上的私有 PyPi 存储库.
I'm trying to push to a private PyPi repository on a company nexus.
推荐答案
问题是,在我的 .pypirc 中,它说:
The problem was that, in my .pypirc, it said:
[ournexus]
repository=[my URL]/repository/[repositoryname]
username=[username]
password=[password]
它应该说的地方
[ournexus]
repository=[my URL]/repository/[repositoryname]/
username=[username]
password=[password]
(注意 [repositoryname] 后面的正斜杠)
(note the forward slash after [repositoryname])
从在线文档和教程来看,对于公共 pypi 似乎没问题,但似乎没有被 nexus 接受.
Which, judging from the documentation and tutorials online seems to be fine for the public pypi, but doesn't seem to be accepted by nexus.
这篇关于推到nexus,我得到“存储库路径在初始“/"之后必须有另一个“/"";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文