如何解决错误&quot“警告:test命令发现但未安装在testenv”中。为毒品?

发布于 2025-02-13 02:39:08 字数 537 浏览 0 评论 0原文

使用托克斯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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

羁绊已千年 2025-02-20 02:39:08

您正在使用tox的超过时版本。

使用此旧版本,您需要

whitelist_externals = make

在配置文件中

使用...。在错误消息中也建议解决方案。

有关更多信息,请参见 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...

whitelist_externals = make

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文