From e3fef8412f3474ecd719a9bf44e377070890d7ed Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sun, 17 Apr 2016 17:01:09 +0200 Subject: [PATCH] Fix post jobs The tox venv environment is run during post jobs and thus cannot use constraints. See http://logs.openstack.org/a6/a6650650f065bc4423568f9318d362957eba7f31/post/magnum-docs/60418d4/ http://logs.openstack.org/a6/a6650650f065bc4423568f9318d362957eba7f31/post/magnum-branch-tarball/415035c/ We run for docs jobs: "tox -e venv python setup.py build_sphinx" thus, the docs environment is not used. For branch tarball, the infra scripts use: "tox -e venv python setup.py sdist" And infra does not setup constraints for post jobs currently as this is not working with current tools Fix tox.ini for this. Change-Id: Iad81b47899c4554b75f90dc24f0aa2aff7aef730 --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tox.ini b/tox.ini index 216efe178f..62b9248b9a 100644 --- a/tox.ini +++ b/tox.ini @@ -84,6 +84,10 @@ commands = bandit -r magnum -x tests -n5 -ll [testenv:venv] +# NOTE(jaegerandi): This target does not use constraints because +# upstream infra does not yet support it. Once that's fixed, we can +# drop the install_command. +install_command = pip install -U --force-reinstall {opts} {packages} commands = {posargs} [testenv:venv-constraints]