We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent beda06a commit 2cbcf96Copy full SHA for 2cbcf96
1 file changed
src/tox_current_env/hooks.py
@@ -199,11 +199,10 @@ def tox_testenv_install_deps(venv, action):
199
200
def tox_dependencies(config):
201
"""Get dependencies of tox itself, 'minversion' and 'requires' config options"""
202
- # config does not have this attribute until tox 3.22:
203
- deps = getattr(config, "requires", [])
204
if config.minversion is not None:
205
- deps.insert(0, f"tox >= {config.minversion}")
206
- return deps
+ yield f"tox >= {config.minversion}"
+ # config does not have the "requires" attribute until tox 3.22:
+ yield from getattr(config, "requires", [])
207
208
209
@tox.hookimpl
0 commit comments