From 9b0106b58de343fe56f7335ed71c5df944b65e7b Mon Sep 17 00:00:00 2001 From: Jim Rollenhagen Date: Thu, 19 May 2016 09:58:18 -0400 Subject: [PATCH] Use constraints for all the things This configures tox to use upper-constraints for everything, except environments used for post jobs (as constraints aren't supported there yet). Change-Id: I24949553ae7161e0d9c0cf17de5154fae6c3b22e --- tox.ini | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 5dbe678f5..98f6f4930 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,7 @@ skipsdist = True [testenv] usedevelop = True -install_command = pip install -U {opts} {packages} +install_command = pip install -U -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/requirements.txt @@ -16,9 +16,21 @@ commands = python setup.py test --slowest --testr-args='{posargs}' commands = flake8 [testenv:venv] +# NOTE(amrith) The setting of the install_command in this location +# is only required because currently infra does not actually +# support constraints files for the docs job, and while +# the environment variable UPPER_CONSTRAINTS_FILE is set, there's +# no file there. It can be removed when infra changes this. +install_command = pip install -U {opts} {packages} commands = {posargs} [testenv:cover] +# NOTE(amrith) The setting of the install_command in this location +# is only required because currently infra does not actually +# support constraints files for the cover job, and while +# the environment variable UPPER_CONSTRAINTS_FILE is set, there's +# no file there. It can be removed when infra changes this. +install_command = pip install -U {opts} {packages} commands = python setup.py test --coverage --testr-args='{posargs}' [testenv:docs] @@ -28,6 +40,12 @@ commands = python setup.py build_sphinx commands = oslo_debug_helper {posargs} [testenv:releasenotes] +# NOTE(amrith) The setting of the install_command in this location +# is only required because currently infra does not actually +# support constraints files for the releasenotes job, and while +# the environment variable UPPER_CONSTRAINTS_FILE is set, there's +# no file there. It can be removed when infra changes this. +install_command = pip install -U {opts} {packages} commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [flake8]