Change tox file

Add upper-constraints and min tox version.

This will prevent taking in packages that
are greater then what is defined in the
upper-constraints

Change-Id: I2e132ae6fa1f8ae7391a31d67b808912ba47e525
This commit is contained in:
Michael James Hoppal 2016-04-20 15:55:42 -06:00
parent ca657efd37
commit 8ef748c5cb
1 changed files with 3 additions and 2 deletions

View File

@ -1,12 +1,13 @@
[tox]
minversion = 1.6
minversion = 2.0
skipsdist = True
envlist = py27,pep8
[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
whitelist_externals = find