`setup.py test`在自己的repo中找不到包

时间:2018-02-20 12:28:59

标签: python testing setuptools setup.py

我尝试使用setup.py进行测试,通常使用python setup.py test并使用适当的setup.py配置进行测试。直到我从我自己的存储库添加了一个包,这没关系。

我可以使用pip install my_package轻松安装它,--extra-index-url中的/etc/pip.conf~/.pypirc.中的凭据我也在设置dependency_links中输入了网址.py文件!

但是当我现在运行它时,我发现它知道该模块,但它无法下载它!

(testpy3) honza@mycomp:~/.../xxxx_module$ python setup.py test
running pytest
Searching for package_yyyy
Reading https://specimen:specimen@repo.xxxxx.net/repository/pypi-private/simple
Reading https://pypi.python.org/simple/package_yyyy/
Reading https://pypi.python.org/simple/package_yyyy-grpc/
Couldn't find index page for 'package_yyyy' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or working download links found for package_yyyy
error: Could not find suitable distribution for Requirement.parse('package_yyyy')

实际上我想在docker中使用它,但是在本地或docker中都不起作用。有什么想法吗?

0 个答案:

没有答案
相关问题