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: Id557b9c47abf275de83516ccecd2d1b3eb0cfdd5
This commit is contained in:
parent
9c7dc2de7b
commit
8214984bd4
7
tox.ini
7
tox.ini
|
@ -1,20 +1,21 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py27,pep8
|
envlist = py27,pep8
|
||||||
minversion = 1.6
|
minversion = 2.0
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
usedevelop = True
|
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 =
|
setenv =
|
||||||
VIRTUAL_ENV={envdir}
|
VIRTUAL_ENV={envdir}
|
||||||
DISCOVER_DIRECTORY=tests
|
DISCOVER_DIRECTORY=tests
|
||||||
deps = -r{toxinidir}/requirements.txt
|
deps = -r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
psutil==3.0.1
|
|
||||||
whitelist_externals = bash
|
whitelist_externals = bash
|
||||||
find
|
find
|
||||||
commands =
|
commands =
|
||||||
|
pip install psutil==3.0.1
|
||||||
find . -type f -name "*.pyc" -delete
|
find . -type f -name "*.pyc" -delete
|
||||||
nosetests -w tests/ -e tests_to_fix
|
nosetests -w tests/ -e tests_to_fix
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue