Actual outcome:
tox exits immediately with the somewhat cryptic message ERROR: unknown environment 'py35' even though python --version outputs `Python 3.5.2``
This problem seems to be fixed between tox versions 1.8.1 and 1.9.0, the following change resolves the problem with a minimal delta
One could discuss which version to upgrade to. I have no knowledge of the inner workings of the tox project, so being conservative with upgrading seems prudent. Another strategy would be to upgrade to the latest released version 2.3.1 or, assuming that semantic versioning is applied correctly the latest minor release, which would be 1.9.2
Attempted to run
tox
on the current master of ramlfications (https://github.com/spotify/ramlfications/commit/59ac38977cd45b6bdacde51a5fe12d602ddf1e1f) on a completely vanilla macos machine and it fails with the somewhat crypticERROR: unknown environment 'py35'
Steps to reproduce:
10.11.5
xcode-select --install
brew install python python3
pip install virtualenvwrapper && . /usr/local/bin/virtualenvwrapper.sh
mkvirtualenv --python=/usr/local/bin/python3 py3
git clone https://github.com/spotify/ramlfications.git
pip install -r dev-requirements.txt
tox
Expected outcome: some testing
Actual outcome: tox exits immediately with the somewhat cryptic message
ERROR: unknown environment 'py35'
even thoughpython --version
outputs `Python 3.5.2``This problem seems to be fixed between tox versions 1.8.1 and 1.9.0, the following change resolves the problem with a minimal delta
One could discuss which version to upgrade to. I have no knowledge of the inner workings of the tox project, so being conservative with upgrading seems prudent. Another strategy would be to upgrade to the latest released version 2.3.1 or, assuming that semantic versioning is applied correctly the latest minor release, which would be 1.9.2