Issue
I've set TOX_DISCOVER to a space separated list of paths, however, tox seems to ignore that.
Even when I pass it directly to --discover, only the last path is actually discovered.
Console output from my investigation
(ansible-lint-empty-lines-between-tasks) ➜ ansible-lint-empty-lines-between-tasks git:(master) ✗ which tox
/home/martin/micromamba/envs/ansible-lint-empty-lines-between-tasks/bin/tox
(ansible-lint-empty-lines-between-tasks) ➜ ansible-lint-empty-lines-between-tasks git:(master) ✗ echo $TOX_DISCOVER
/home/martin/micromamba/envs/py37/bin /home/martin/micromamba/envs/py38/bin /home/martin/micromamba/envs/py39/bin /home/martin/micromamba/envs/py310/bin /home/martin/micromamba/envs/py311/bin /home/martin/micromamba/envs/py312/bin
(ansible-lint-empty-lines-between-tasks) ➜ ansible-lint-empty-lines-between-tasks git:(master) ✗ for p in $(echo $TOX_DISCOVER); do echo -n "$p: "; ${p}/python --version; done
/home/martin/micromamba/envs/py37/bin: Python 3.7.16
/home/martin/micromamba/envs/py38/bin: Python 3.8.17
/home/martin/micromamba/envs/py39/bin: Python 3.9.17
/home/martin/micromamba/envs/py310/bin: Python 3.10.12
/home/martin/micromamba/envs/py311/bin: Python 3.11.4
/home/martin/micromamba/envs/py312/bin: Python 3.12.0
</details>
## Environment
I'm using micromamba.
Provide at least:
- OS: Ubuntu 20.04
<details open>
<summary>Output of <code>pip list</code> of the host Python, where <code>tox</code> is installed</summary>
```console
Package Version
------------------ ---------------
annotated-types 0.6.0
black 24.4.0
build 1.2.1
bump2version 1.0.1
cachetools 5.3.3
certifi 2024.2.2
cffi 1.16.0
chardet 5.2.0
charset-normalizer 3.3.2
click 8.1.7
colorama 0.4.6
coverage 7.4.4
cryptography 42.0.5
distlib 0.3.8
distro 1.9.0
docutils 0.21.1
filelock 3.13.4
flake8 7.0.0
freezegun 1.4.0
idna 3.7
importlib_metadata 7.1.0
iniconfig 2.0.0
jaraco.classes 3.4.0
jaraco.context 5.3.0
jaraco.functools 4.0.0
jeepney 0.8.0
keyring 25.1.0
maison 1.4.3
markdown-it-py 3.0.0
mccabe 0.7.0
mdurl 0.1.2
more-itertools 10.2.0
mypy 1.9.0
mypy-extensions 1.0.0
nh3 0.2.17
packaging 24.0
pathspec 0.12.1
pip 24.0
pkginfo 1.10.0
platformdirs 4.2.0
pluggy 1.4.0
pycodestyle 2.11.1
pycparser 2.22
pydantic 2.7.0
pydantic_core 2.18.1
pyflakes 3.2.0
Pygments 2.17.2
pyproject-api 1.6.1
pyproject_hooks 1.0.0
pytest 8.1.1
pytest-cov 5.0.0
python-dateutil 2.9.0.post0
readme_renderer 43.0
requests 2.31.0
requests-toolbelt 1.0.0
rfc3986 2.0.0
rich 13.7.1
ruff 0.3.7
ruyaml 0.91.0
SecretStorage 3.3.3
setuptools 69.2.0
six 1.16.0
toml 0.10.2
tox 4.14.2
twine 5.0.0
types-freezegun 1.1.10
types-setuptools 69.2.0.20240317
typing_extensions 4.11.0
urllib3 2.2.1
virtualenv 20.25.1
wheel 0.43.0
yamlfix 1.16.0
zipp 3.18.1
Output of running tox
Output of tox -rvv
(ansible-lint-empty-lines-between-tasks) ➜ ansible-lint-empty-lines-between-tasks git:(master) ✗ tox -rvv
py3.10: 295 W remove tox env folder /home/martin/workspace/ansible-lint-empty-lines-between-tasks/.tox/py3.10 [tox/tox_env/api.py:323]
.pkg: 297 W remove tox env folder /home/martin/workspace/ansible-lint-empty-lines-between-tasks/.tox/.pkg [tox/tox_env/api.py:323]
py3.10: 390 I find interpreter for spec PythonSpec(major=3, minor=10) [virtualenv/discovery/builtin.py:58]
py3.10: 391 D get interpreter info via cmd: / /home/martin/micromamba/envs/ansible-lint-empty-lines-between-tasks/lib/python3.12/site-packages/virtualenv/discovery/py_info.py WRvXQNTlINZPalllgkZop8FdDeClVXMC Rxdhh6bKxVUdHvEI1R1C4qYyZmifFTd0 [virtualenv/discovery/cached_py_info.py:112]
py3.10: 392 W skipped because could not find python interpreter with spec(s): py3.10 [tox/session/cmd/run/single.py:50]
py3.11: 394 W remove tox env folder /home/martin/workspace/ansible-lint-empty-lines-between-tasks/.tox/py3.11 [tox/tox_env/api.py:323]
py3.10: SKIP ⚠ in 0.1 seconds
py3.11: 398 I find interpreter for spec PythonSpec(major=3, minor=11) [virtualenv/discovery/builtin.py:58]
py3.11: 399 W skipped because could not find python interpreter with spec(s): py3.11 [tox/session/cmd/run/single.py:50]
py3.12: 400 W remove tox env folder /home/martin/workspace/ansible-lint-empty-lines-between-tasks/.tox/py3.12 [tox/tox_env/api.py:323]
py3.11: SKIP ⚠ in 0.01 seconds
py3.12: 579 I find interpreter for spec PythonSpec(major=3, minor=12) [virtualenv/discovery/builtin.py:58]
py3.12: 579 W skipped because could not find python interpreter with spec(s): py3.12 [tox/session/cmd/run/single.py:50]
lint: 582 W remove tox env folder /home/martin/workspace/ansible-lint-empty-lines-between-tasks/.tox/lint [tox/tox_env/api.py:323]
py3.12: SKIP ⚠ in 0.18 seconds
lint: 645 I find interpreter for spec PythonSpec(path=/home/martin/micromamba/envs/ansible-lint-empty-lines-between-tasks/bin/python3.12) [virtualenv/discovery/builtin.py:58]
lint: 646 W skipped because could not find python interpreter with spec(s): /home/martin/micromamba/envs/ansible-lint-empty-lines-between-tasks/bin/python3.12 [tox/session/cmd/run/single.py:50]
py3.10: SKIP (0.10 seconds)
py3.11: SKIP (0.01 seconds)
py3.12: SKIP (0.18 seconds)
lint: SKIP (0.06 seconds)
evaluation failed :( (0.47 seconds)
Minimal example
You can check the repo https://github.com/mimre25/ansible-lint-empty-lines-between-tasks, it's rather small.
I've tried the same with the paths being : separated, but to no avail.
Unfortunately, I couldn't find the format required for --discover/TOX_DISCOVER in the documentation, but the space separated format used to work in the past when I was using miniconda.
Issue
I've set
TOX_DISCOVERto a space separated list of paths, however,toxseems to ignore that.Even when I pass it directly to
--discover, only the last path is actually discovered.Console output from my investigation
Output of running tox
Output of
tox -rvvMinimal example
You can check the repo https://github.com/mimre25/ansible-lint-empty-lines-between-tasks, it's rather small.
I've tried the same with the paths being
:separated, but to no avail.Unfortunately, I couldn't find the format required for
--discover/TOX_DISCOVERin the documentation, but the space separated format used to work in the past when I was using miniconda.