From 2dcb15b169f12680b6987d530e648b565e6a616e Mon Sep 17 00:00:00 2001 From: Sridhar Ramaswamy Date: Mon, 1 Aug 2016 20:39:42 +0000 Subject: [PATCH] Always use upper-constraints This patch modifies tox.ini to always use upper-constraints. Change-Id: I24273d7789842f4c78ddc3c5f2a4bdaf72050b41 --- tox.ini | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tox.ini b/tox.ini index bb64ef710..21c949b22 100644 --- a/tox.ini +++ b/tox.ini @@ -1,20 +1,16 @@ [tox] -# TODO(yamahata): enable tests of py34. -# Those unit tests are temporalily disabled until its stabilization -#envlist = py27,py34,pep8 envlist = docs,pep8,py27 minversion = 1.6 skipsdist = True -# TODO(yamahata): re-enable unit tests again -# disable unit tests for now until stabilization [testenv:py34] commands = bash -c "echo do nothing for py34 for now. enable after stablized" [testenv] setenv = VIRTUAL_ENV={envdir} 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} deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt setuptools-git>=0.4 @@ -65,6 +61,8 @@ commands = python setup.py build_sphinx [testenv:releasenotes] +# Note: remove once infra supports constraints for this target +install_command = pip install -U --force-reinstall {opts} {packages} commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html @@ -83,6 +81,8 @@ commands = coverage html --include='tacker/*' -d covhtml -i [testenv:venv] +# Note: remove once infra supports constraints for this target +install_command = pip install -U --force-reinstall {opts} {packages} commands = {posargs} [flake8]