From bfc06ae553efe0e20f5a34f2d9e9709634dc34fe Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Tue, 23 Jun 2020 07:51:44 -0500 Subject: [PATCH] Fix venv use in requirements propose_update.sh This script creates a virtualenv to run a requirements script to update constraints. virtualenv is not globally available anymore. Rather than trying to call it directly, this now uses tox to set up the virtual environment. Change-Id: If00afb50c37b45aefbb45070da4efef3e43e62b2 Signed-off-by: Sean McGinnis --- playbooks/proposal/propose_update.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/playbooks/proposal/propose_update.sh b/playbooks/proposal/propose_update.sh index f264f8fe9a..85c75405ec 100755 --- a/playbooks/proposal/propose_update.sh +++ b/playbooks/proposal/propose_update.sh @@ -32,9 +32,8 @@ elif [ "$OWN_PROJECT" == "requirements-constraints" ] ; then INITIAL_COMMIT_MSG="Updated from generate-constraints" TOPIC="openstack/requirements/constraints" PROJECTS=openstack/requirements - VENV=$(mktemp -d) - trap "rm -rf $VENV" EXIT - virtualenv -p python3 $VENV + tox -re venv --notest + VENV=$(readlink -f .tox/venv) $VENV/bin/pip install -e . function update { $VENV/bin/generate-constraints -b blacklist.txt -p /usr/bin/python3.6 \