Force basepython=python2.7

launchpadlib 0.0.1.dev533 requires lazr.restfulclient, which contains
python2-only syntax (at least as of lazr.restfulclient 0.13.1).  On a
system where "tox" uses python3 (eg: Debian "stretch"), the default
basepython will be python3, and venv creation (pip building wheels) will
fail on lazr.restfulclient.

This patch forces basepython=python2.7 across all testenvs.

Change-Id: I44f4c6f819550a8a586ae19bbed45fc9b67dd1c0
This commit is contained in:
Angus Lees 2015-12-04 15:23:02 +11:00 committed by Davanum Srinivas
parent d131a1588e
commit c30b3403ef

View File

@ -10,6 +10,9 @@ install_command = pip install -U {opts} {packages}
--allow-insecure lazr.authentication
setenv =
VIRTUAL_ENV={envdir}
# launchpadlib 0.0.1.dev533 requires lazr.restfulclient, which is
# py2-only (as of lazr.restfulclient 0.13.1)
basepython = python2.7
[testenv:validate]
commands = validate-request {posargs}