-
-
Notifications
You must be signed in to change notification settings - Fork 533
Tox envlist selects incorrect python versions #882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @labrys, thanks for the detailed report. I can reproduce this with 3.0 on Linux. |
Tox currently does not reliably select the correct Python version if it's not available. This displays the Python version for manual verification, if necessary. See tox-dev/tox#882
@obestwalter While this is being looked into, would it also be possible to add a |
@labrys it already does see https://tox.readthedocs.io/en/latest/example/basic.html?highlight=py2#a-simple-tox-ini-default-environments py3 is already supported. With the latest release we just made it work on Windows too http://tox.readthedocs.io/en/latest/changelog.html#features |
We've added Windows support with our lates release |
@gaborbernat I double checked and I wasn't using the dev version of tox in my test when I checked |
My bad, not the dev version, however, you'll need https://tox.readthedocs.io/en/3.1.1/changelog.html aka |
Just updated to 3.1.1 and it looks like it works as advertised, the |
Tox currently does not reliably select the correct Python version if it's not available. This displays the Python version for manual verification, if necessary. See tox-dev/tox#882
#914 should address the others |
Seems to me all issues here have been addressed. |
Minimal reproducible example and detailed description
If a Python version is not available for a defined environment in the
envlist
tox selects the default Python for some environments and fails withInterpreterNotFound
for others. This should be consistent and fail for all versions of python that aren't available.Prerequisites:
tox
installed in the current environmentReproduce:
Create the following
tox.ini
in the current directory:Check current Python version
In this example Python 3.7.0 is the system default, your version may differ
Run test and review output
Only one success and one failure shown for brevity:
Python 2.5 is not installed but an environment for Python 2.5 was created (
py25 create: E:\src\toxin\.tox\py25
) but is using the current system default Python 3.7.0Python 3.4 is not installed and the expected error is displayed (
ERROR: InterpreterNotFound: python3.4
)OS and
pip list
outputThe text was updated successfully, but these errors were encountered: