From 7223267328d864d5de5d4ff6ea9bf2c6cbc36039 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Sun, 10 Apr 2016 15:28:17 +0100 Subject: [PATCH] tox.ini: specify 'basepython' (with TOXPYTHON override); print python version and arch; call `python -m pip` to work around Appveyor-installed pip --- tox.ini | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 6f7512bca..7a0d32c97 100644 --- a/tox.ini +++ b/tox.ini @@ -1,11 +1,22 @@ [tox] -envlist = py27, pypy, py33, py34, py35 +envlist = py27, pypy, py34, py35 [testenv] +basepython = + py27: {env:TOXPYTHON:python2.7} + pypy: {env:TOXPYTHON:pypy} + py34: {env:TOXPYTHON:python3.4} + py35: {env:TOXPYTHON:python3.5} deps = pytest -rrequirements.txt +install_command = + python -m pip install -v {opts} {packages} commands = + # check that we have the expected Python version and architecture + python -c "import sys; print(sys.version)" + python -c "import struct; print(struct.calcsize('P') * 8)" + # run the test suite py.test [pytest]