将Bintray通用存储库与PIP一起使用

问题描述 投票:0回答:1

我正在尝试确定是否可以将Bintray用作python软件包回购。我看到Bintray不提供PyPi回购类型-https://www.jfrog.com/confluence/display/BT/Supported+Package+Formats

我想知道如何使用通用Bintray回购使其与PIP一起使用。当我尝试在通用仓库中创建软件包和版本时,要访问它,我们需要知道确切的文件名。我尝试将PIP_INDEX_URL设置为类似的方式,但它不起作用。

https://user:[email protected]/myUser/my-pypi-repo/

我确实知道我可以将文件下载到本地并使用pip进行安装,但这会使版本管理非常复杂。

我只能使用带有确切文件路径的'curl'或'wget'进行下载。任何建议都会有很大帮助。

pip pypi bintray jfrog-cli
1个回答
0
投票

您需要使用PiPy Basic Authentication。您需要使用的安装命令是:

pip install my-pypi-package --index-url=https://dl.bintray.com/myUser/my-pypi-repo/

对于私有存储库,您需要添加凭据:

pip install my-pypi-package --index-url=https://username:[email protected]/myUser/my-pypi-repo/

请记住,所有必需的文件都在此路径https://dl.bintray.com/myUser/my-pypi-repo/

© www.soinside.com 2019 - 2024. All rights reserved.