Merge "Add upper-constraints enforcement for local reqs"
This commit is contained in:
commit
4619e65da7
@ -121,6 +121,7 @@
|
|||||||
export DEVSTACK_GATE_EXERCISES=0
|
export DEVSTACK_GATE_EXERCISES=0
|
||||||
export DEVSTACK_GATE_REQS_INTEGRATION=1
|
export DEVSTACK_GATE_REQS_INTEGRATION=1
|
||||||
export PIP_PROCESS_DEPENDENCY_LINKS=1
|
export PIP_PROCESS_DEPENDENCY_LINKS=1
|
||||||
|
export USE_PYTHON3=true
|
||||||
function gate_hook {
|
function gate_hook {
|
||||||
set -x
|
set -x
|
||||||
bash $BASE/new/devstack-gate/devstack-vm-gate.sh && \
|
bash $BASE/new/devstack-gate/devstack-vm-gate.sh && \
|
||||||
|
9
tox.ini
9
tox.ini
@ -7,7 +7,7 @@ ignore_basepython_conflict=true
|
|||||||
[testenv]
|
[testenv]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
install_command = pip install -U {opts} {packages}
|
install_command = pip install -U {opts} -c {toxinidir}/upper-constraints.txt {packages}
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
deps = -r{toxinidir}/requirements.txt
|
deps = -r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
@ -16,13 +16,11 @@ commands =
|
|||||||
|
|
||||||
[testenv:py27-check-uc]
|
[testenv:py27-check-uc]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
install_command = pip install -U {opts} -c {toxinidir}/upper-constraints.txt {packages}
|
|
||||||
deps = -r{toxinidir}/upper-constraints.txt
|
deps = -r{toxinidir}/upper-constraints.txt
|
||||||
commands = check-conflicts {toxinidir}/upper-constraints.txt {toxinidir}/upper-constraints-xfails.txt
|
commands = check-conflicts {toxinidir}/upper-constraints.txt {toxinidir}/upper-constraints-xfails.txt
|
||||||
|
|
||||||
[testenv:py36-check-uc]
|
[testenv:py36-check-uc]
|
||||||
basepython = python3.6
|
basepython = python3.6
|
||||||
install_command = pip install -U {opts} -c {toxinidir}/upper-constraints.txt {packages}
|
|
||||||
deps = -r{toxinidir}/upper-constraints.txt
|
deps = -r{toxinidir}/upper-constraints.txt
|
||||||
commands = check-conflicts {toxinidir}/upper-constraints.txt {toxinidir}/upper-constraints-xfails.txt
|
commands = check-conflicts {toxinidir}/upper-constraints.txt {toxinidir}/upper-constraints-xfails.txt
|
||||||
|
|
||||||
@ -33,6 +31,10 @@ commands = {posargs}
|
|||||||
commands = update-requirements {posargs}
|
commands = update-requirements {posargs}
|
||||||
|
|
||||||
[testenv:generate]
|
[testenv:generate]
|
||||||
|
# Generate needs an unconstrained install to get new dependencies
|
||||||
|
install_command = pip install -U {opts} {packages}
|
||||||
|
deps = -r{toxinidir}/requirements.txt
|
||||||
|
-r{toxinidir}/test-requirements.txt
|
||||||
commands = generate-constraints {posargs}
|
commands = generate-constraints {posargs}
|
||||||
|
|
||||||
[testenv:validate]
|
[testenv:validate]
|
||||||
@ -90,7 +92,6 @@ commands =
|
|||||||
[testenv:babel]
|
[testenv:babel]
|
||||||
# Use the local upper-constraints.txt file
|
# Use the local upper-constraints.txt file
|
||||||
deps = Babel
|
deps = Babel
|
||||||
install_command = pip install -c upper-constraints.txt {opts} {packages}
|
|
||||||
commands = {toxinidir}/tools/babel-test.sh
|
commands = {toxinidir}/tools/babel-test.sh
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
|
Loading…
Reference in New Issue
Block a user