如何解决错误&quot“警告:test命令发现但未安装在testenv”中。为毒品?
使用托克斯3.7.0-2我会出现错误
WARNING: test command found but not installed in testenv
cmd: /usr/bin/make
env: /builds/common/doc/docs-create/.tox/docs
Maybe you forgot to specify a dependency? See also the whitelist_externals envconfig setting.
,但是在tox.ini
文件中,我有以下声明:
[testenv:docs]
deps =
setuptools
gitpython
click
commands =
make clean
make html SPHINXOPTS="-v"
allowlist_externals =
make
它似乎“允许”外部make
。那么这里有什么问题?
Using tox 3.7.0-2 I get an error
WARNING: test command found but not installed in testenv
cmd: /usr/bin/make
env: /builds/common/doc/docs-create/.tox/docs
Maybe you forgot to specify a dependency? See also the whitelist_externals envconfig setting.
But in the tox.ini
file I have the following declaration:
[testenv:docs]
deps =
setuptools
gitpython
click
commands =
make clean
make html SPHINXOPTS="-v"
allowlist_externals =
make
which seems to "allow" the external make
. So what is the problem here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在使用
tox
的超过时版本。使用此旧版本,您需要
在配置文件中
使用...。在错误消息中也建议解决方案。
有关更多信息,请参见 https://tox.wiki/en/latest/changelog.html?highlight = whitelist#deprecations-removal-removal-in-next-next-next-major-release
You are using a super outdated version of
tox
.With this old version you need to use...
in your configuration file.
The solution is also suggested in the error message.
For more information see https://tox.wiki/en/latest/changelog.html?highlight=whitelist#deprecations-removal-in-next-major-release