From 6bf21f3660658c8916365aa51bfd6fc61fbd7121 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sun, 17 Apr 2016 22:01:59 +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/db/db7bdf9aa0cb0ba5fbae5ae07ecdb9f024213deb/post/keystone-docs/92d1e87/ http://logs.openstack.org/db/db7bdf9aa0cb0ba5fbae5ae07ecdb9f024213deb/post/keystone-branch-tarball/eb685ad/ 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: I048368981e4be739c66073fdd9bc8a9663498a80 (cherry picked from commit 2535f22e6123bd8b7ae1304b31f6748e631d8e61) --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tox.ini b/tox.ini index 8e5e2f0fb3..18f8ae5cf3 100644 --- a/tox.ini +++ b/tox.ini @@ -74,6 +74,10 @@ commands = python setup.py testr --coverage --testr-args='{posargs}' install_command = pip install -U --force-reinstall {opts} {packages} [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:debug]