92bd9bdf54
Sadly, this creeped in on our last change. Not sure how we missed it. Change-Id: I3a1cbbe10db67c4a0fc0f410f6c8755219a5788e Signed-off-by: Paul Belanger <pabelanger@redhat.com>
18 lines
582 B
Bash
Executable File
18 lines
582 B
Bash
Executable File
#!/bin/bash -xe
|
|
|
|
# Working variables
|
|
WHEELHOUSE_DIR=$1
|
|
PROJECT=openstack/requirements
|
|
WORKING_DIR=`pwd`/$PROJECT
|
|
PYTHON_VERSION=$2
|
|
|
|
# Extract and iterate over all the branch names.
|
|
BRANCHES=`git --git-dir=$WORKING_DIR/.git branch -r | grep '^ origin/[^H]'`
|
|
for BRANCH in $BRANCHES; do
|
|
git --git-dir=$WORKING_DIR/.git show $BRANCH:upper-constraints.txt \
|
|
2>/dev/null > /tmp/upper-constraints.txt || true
|
|
rm -rf build_env
|
|
virtualenv -p $PYTHON_VERSION build_env
|
|
build_env/bin/pip --verbose wheel -r /tmp/upper-constraints.txt -w $WHEELHOUSE_DIR || true
|
|
done
|