Make tox use python2.7 more specifically

When executing tox it tries to identify the appropriate Python 2
binary to use. When multiple Python 2.x binaries are available
then this may fail.

We specifically support the use of Python 2.7 so this patch
explicitly sets tox to make use of Python 2.7.

This resolves a situation where executing a tox test may result in
the error 'ERROR: InterpreterNotFound: python2'.

Change-Id: I647bc898343789e89963424033363a2d72b89c79
This commit is contained in:
Jesse Pretorius 2016-05-03 13:13:45 +01:00 committed by Jesse Pretorius (odyssey4me)
parent e971e15997
commit d80d6f9ec8
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = bash
basepython = python2
basepython = python2.7
[testenv:releasenotes]
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html