summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pbr/util.py2
-rw-r--r--tools/integration.sh27
2 files changed, 24 insertions, 5 deletions
diff --git a/pbr/util.py b/pbr/util.py
index 6339116..214cacf 100644
--- a/pbr/util.py
+++ b/pbr/util.py
@@ -222,7 +222,7 @@ def cfg_to_args(path='setup.cfg'):
if setup_hooks:
setup_hooks = [
hook for hook in split_multiline(setup_hooks)
- if hook != 'pbr.hook.setup_hook']
+ if hook != 'pbr.hooks.setup_hook']
for hook in setup_hooks:
hook_fn = resolve_name(hook)
try :
diff --git a/tools/integration.sh b/tools/integration.sh
index b32b303..2e8d5f6 100644
--- a/tools/integration.sh
+++ b/tools/integration.sh
@@ -17,9 +17,6 @@ function mkvenv {
$venv/bin/pip install $pip
}
-# PROJECTS is a list of projects that we're testing
-PROJECTS=$*
-
# BASE should be a directory with a subdir called "new" and in that
# dir, there should be a git repository for every entry in PROJECTS
BASE=${BASE:-/opt/stack}
@@ -40,9 +37,11 @@ mkdir -p $pypidir
jeepybvenv=$tmpdir/jeepyb
+sudo touch $HOME/pip.log
+sudo chown $USER $HOME/pip.log
+
rm -f ~/.pip/pip.conf ~/.pydistutils.cfg
mkdir -p ~/.pip
-
cat <<EOF > ~/.pip/pip.conf
[global]
log = $HOME/pip.log
@@ -64,6 +63,24 @@ mirrors:
output: $pypidir
EOF
+# Default to using pypi.openstack.org as an easy_install mirror
+if [ "$1" == "--no-mirror" ] ; then
+ shift
+else
+ cat <<EOF > ~/.pydistutils.cfg
+[easy_install]
+index_url = http://pypi.openstack.org/openstack
+EOF
+ cat <<EOF > ~/.pip/pip.conf
+[global]
+index-url = http://pypi.openstack.org/openstack
+log = $HOME/pip.log
+EOF
+fi
+
+# PROJECTS is a list of projects that we're testing
+PROJECTS=$*
+
pbrsdistdir=$tmpdir/pbrsdist
git clone $REPODIR/pbr $pbrsdistdir
cd $pbrsdistdir
@@ -77,6 +94,8 @@ $jeepybvenv/bin/python setup.py sdist -d $tmpdownload/pip/openstack
$jeepybvenv/bin/run-mirror -b remotes/origin/master --verbose -c $tmpdir/mirror.yaml --no-download
+find $pypidir
+
# Make pypi thing
pypiurl=file://$pypidir