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.
@@ -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 \
