Skip to content
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

tox uses wrong interpreters for obsolete Python versions #1168

Closed
funkyfuture opened this issue Feb 21, 2019 · 4 comments
Closed

tox uses wrong interpreters for obsolete Python versions #1168

funkyfuture opened this issue Feb 21, 2019 · 4 comments
Labels
bug:minor does not affect many people or has no big impact help:wanted Issues that have been acknowledged, a solution determined and a PR might likely be accepted.

Comments

@funkyfuture
Copy link

ciao ragazzi, here's a

bug description

tox does not install some CPython versions, but rather uses the version of the interpreter that runs tox. this can be inspected with the logs of the builds in the "Allowed Failures" section of this build on Travis. i could reproduce the behaviour locally with 2.4, 2.6 and 3.3 (i checked no further), e.g.:

$ TOXENV=py24 tox

GLOB sdist-make: /home/user/cerberus/setup.py
py24 recreate: /home/user/cerberus/.tox/py24
py24 installdeps: pytest
py24 inst: /home/user/cerberus/.tox/.tmp/package/1/Cerberus-1.2.zip
py24 installed: atomicwrites==1.3.0,attrs==18.2.0,Cerberus==1.2,more-itertools==6.0.0,pluggy==0.8.1,py==1.7.0,pytest==4.3.0,six==1.12.0
py24 run-test-pre: PYTHONHASHSEED='3823316362'
py24 runtests: commands[0] | pytest cerberus/tests
============================= test session starts ==============================
platform linux -- Python 3.6.3, pytest-4.3.0, py-1.7.0, pluggy-0.8.1
cachedir: .tox/py24/.pytest_cache
rootdir: /home/user/cerberus, inifile: pytest.ini

and some

environment information
$ cat /etc/issue
Ubuntu 18.10 \n \l

$ python2.4 -c "import sys; print sys.version_info"
(2, 4, 6, 'final', 0)

$ source ~/.local/venvs/tox/bin/activate  # tox is managed w/ pipsi

$ pip list
Package    Version
---------- -------
filelock   3.0.10 
pip        18.1   
pluggy     0.8.0  
py         1.7.0  
setuptools 40.5.0 
six        1.11.0 
toml       0.10.0 
tox        3.7.0  
virtualenv 16.1.0 
wheel      0.30.0 
You are using pip version 18.1, however version 19.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
@funkyfuture funkyfuture changed the title tox uses wrong interpreters for obsolete versions tox uses wrong interpreters for obsolete Python versions Feb 21, 2019
@gaborbernat gaborbernat added bug:minor does not affect many people or has no big impact help:wanted Issues that have been acknowledged, a solution determined and a PR might likely be accepted. labels Feb 22, 2019
@gaborbernat
Copy link
Member

Agreed we should still try to create the correct one (though no guarantees offered that creation will pass). Do post a tox.ini that reproduces this.

@funkyfuture
Copy link
Author

Agreed we should still try to create the correct one

i don't understand. are you saying that tox ignores these values by default?

the used tox.ini is here.

@asottile
Copy link
Contributor

asottile commented Mar 8, 2019

Bisected this, #983 caused this regression

@asottile
Copy link
Contributor

fixed again in #1377

@tox-dev tox-dev locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug:minor does not affect many people or has no big impact help:wanted Issues that have been acknowledged, a solution determined and a PR might likely be accepted.
Projects
None yet
Development

No branches or pull requests

3 participants