diff --git a/openstack_requirements/generate.py b/openstack_requirements/generate.py index 9fd34cf5fc..20d5dfd1e0 100644 --- a/openstack_requirements/generate.py +++ b/openstack_requirements/generate.py @@ -144,7 +144,7 @@ def _validate_options(options): if not os.path.exists(options.requirements): raise Exception( "Requirements file %(req)s not found." - % dict(req=options.requirementes)) + % dict(req=options.requirements)) if options.blacklist and not os.path.exists(options.blacklist): raise Exception( "Blacklist file %(path)s not found." diff --git a/tools/integration.sh b/tools/integration.sh index cea44fca29..b9c9351e93 100644 --- a/tools/integration.sh +++ b/tools/integration.sh @@ -41,9 +41,6 @@ export PATH=/usr/lib/ccache:$PATH tmpdir=$(mktemp -d) # Set up a wheelhouse -export WHEELHOUSE=${WHEELHOUSE:-$tmpdir/.wheelhouse} -export PIP_WHEEL_DIR=${PIP_WHEEL_DIR:-$WHEELHOUSE} -export PIP_FIND_LINKS=${PIP_FIND_LINKS:-file://$WHEELHOUSE} mkvenv $tmpdir/wheelhouse # Specific PIP version - must succeed to be useful. # - build/download a local wheel so we don't hit the network on each venv. @@ -57,10 +54,6 @@ if [ -n "${PBR_PIP_VERSION:-}" ]; then # but since we don't use -U in any other invocations, our version # of pip should be sticky. fi -# Build wheels of everything (that can) to make things faster. -# pip will try everything, but exits non-zero if any one thing fails. -$tmpdir/wheelhouse/bin/pip wheel -w $WHEELHOUSE -f $WHEELHOUSE -r \ - $REPODIR/requirements/global-requirements.txt || true #BRANCH BRANCH=${OVERRIDE_ZUUL_BRANCH=:-master} @@ -73,10 +66,16 @@ mkdir -p $projectdir # Attempt to install all of global requirements install_all_of_gr -# Install requirements +# Install requirementsrrepo itself. $tmpdir/all_requirements/bin/pip install $REPODIR/requirements UPDATE="$tmpdir/all_requirements/bin/update-requirements" +# Check that we can generate an upper-requirements.txt file with the change +# that is being proposed. +$tmpdir/all_requirements/bin/generate-constraints -p /usr/bin/python2.7 \ + -p /usr/bin/python3.4 -b $REPODIR/requirements/blacklist.txt \ + -r $REPODIR/requirements/global-requirements.txt + for PROJECT in $PROJECTS ; do SHORT_PROJECT=$(basename $PROJECT) if ! grep 'pbr' $REPODIR/$SHORT_PROJECT/setup.py >/dev/null 2>&1