我尝试使用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中都不起作用。有什么想法吗?