pip和私有存储库

pip和私有存储库,pip,setuptools,drone.io,Pip,Setuptools,Drone.io,我正在部署一个python应用程序,并尝试使用 在我的主应用程序中,我有多个依赖项,它们位于私有Github存储库requirements.txt: git+ssh://git@hostname_A/org/repo_A.git git+ssh://git@hostname_B/org/repo_B.git 对于每个存储库,我都有一个GithubDeploy键。 因此,我的.drone.yml包含存储在无人机机密中的多个部署密钥。 在我的容器中,我正在复制一个.ssh/config文件: Ho

我正在部署一个python应用程序,并尝试使用 在我的主应用程序中,我有多个依赖项,它们位于私有Github存储库
requirements.txt

git+ssh://git@hostname_A/org/repo_A.git
git+ssh://git@hostname_B/org/repo_B.git
对于每个存储库,我都有一个Github
Deploy键
。 因此,我的
.drone.yml
包含存储在无人机机密中的多个部署密钥。 在我的容器中,我正在复制一个
.ssh/config
文件:

Host hostname_A
  HostName github.com
  User git
  IdentityFile /root/.ssh/repo_A_rsa

Host hostname_B
  HostName github.com
  User git
  IdentityFile /root/.ssh/repo_B_rsa
问题是存储库/包
repo_B
也与私有存储库
repo_a
存在依赖关系。 我不知道如何链接这个私有存储库,我已尝试在
repo\u B的
setup.py
中添加
install\u requires
dependency\u链接

setuptools.setup(
    name="repo_B",
    install_requires=[
        "repo_A_alias @ git+ssh://git@hostname_A/org/repo_A.git"
    ],
)
但我仍然得到了错误:

collecting repo_B @ git+ssh://git@github.com/org/repo_B.git
  Cloning ssh://****@github.com/org/repo_B.git to /tmp/pip-install-naymvvlo/repo_B_67066986e78c4124b8cc99242aeaa673
ERROR: Command errored out with exit status 128: git clone -q 'ssh://****@github.com/org/repo_B.git' /tmp/pip-install-naymvvlo/repo_B_67066986e78c4124b8cc99242aeaa673 Check the logs for full command output.
还是有办法访问日志文件