我想使用pip为我的Python应用程序安装私有包。
我的包存储在Azure DevOps(Visual Studio Team Services)上的git仓库中。
我看到 pip支持git,但我无法确定Azure URL的可行格式。
我想避免凭据管理器。 我尝试过git + ssh(带有密钥)和git + https(带有个人访问令牌)。
是否可能使用Azure / VSTS完成此操作?
为了背景,我参考了这些资源:
我的包存储在Azure DevOps(Visual Studio Team Services)上的git仓库中。
我看到 pip支持git,但我无法确定Azure URL的可行格式。
我想避免凭据管理器。 我尝试过git + ssh(带有密钥)和git + https(带有个人访问令牌)。
是否可能使用Azure / VSTS完成此操作?
为了背景,我参考了这些资源:
https://www.revsys.com/tidbits/using-private-packages-python/
以下是我的尝试:
git+https://myUsername:myAccessToken@myCompany.visualstudio.com/myProject/_git/myPackage.git
git+https://<myAccessToken>@visualstudio.com/<myCompany>/<myProject>.git@<ref>
git+https://<myUsername>:<myAccessToken>@<myCompany>.visualstudio.com/<myteam>/<myProject>.git@<ref>
git+https://<myUsername>:<myAccessToken>@visualstudio.com/<myCompany>/<myProject>.git@<ref>
git+https://<myUsername>:<myAccessToken>@visualstudio.com/<myCompany>/<myProject>.git@<ref>
git+ssh://myCompany@vs-ssh.visualstudio.com:v3/myCompany/<myProject>.git@<ref>