summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pbr/packaging.py2
-rw-r--r--tools/integration.sh7
-rw-r--r--tox.ini2
3 files changed, 8 insertions, 3 deletions
diff --git a/pbr/packaging.py b/pbr/packaging.py
index 6020a81..c84ce73 100644
--- a/pbr/packaging.py
+++ b/pbr/packaging.py
@@ -490,7 +490,7 @@ def _get_version_from_git(pre_version):
# First, if there are no -'s or .'s, then it's just a short sha.
# Create a synthetic version for it.
if '-' not in raw_version and '.' not in raw_version:
- return "0.0.0.post%s" % _get_revno_and_last_tag(git_dir)[0]
+ return "0.0.0.post%s" % _get_revno_and_last_tag(git_dir)
# Now, we want to strip the short-sha prefix
stripped_version = raw_version.split('-g')[0]
# Finally, if we convert - to .post, which will turn the remaining
diff --git a/tools/integration.sh b/tools/integration.sh
index 7d6038a..58ffac8 100644
--- a/tools/integration.sh
+++ b/tools/integration.sh
@@ -6,6 +6,9 @@ function mkvenv {
rm -rf $venv
virtualenv $venv
$venv/bin/pip install -U pip wheel
+ if [ $ZUUL_PROJECT = "openstack-dev/pbr" ] ; then
+ $venv/bin/pip install $pbrsdistdir
+ fi
}
# BASE should be a directory with a subdir called "new" and in that
@@ -34,6 +37,10 @@ PROJECTS=$*
pbrsdistdir=$tmpdir/pbrsdist
git clone $REPODIR/pbr $pbrsdistdir
cd $pbrsdistdir
+if [ $ZUUL_PROJECT = "openstack-dev/pbr" ] ; then
+ git fetch $ZUUL_URL/$ZUUL_PROJECT $ZUUL_REF
+ git reset --hard FETCH_HEAD
+fi
eptest=$tmpdir/eptest
mkdir $eptest
diff --git a/tox.ini b/tox.ini
index 68057b2..3aa3cc7 100644
--- a/tox.ini
+++ b/tox.ini
@@ -21,8 +21,6 @@ sitepackages = True
downloadcache = ~/cache/pip
[testenv:pep8]
-deps = -r{toxinidir}/requirements.txt
- -r{toxinidir}/test-requirements.txt
commands = flake8 {posargs}
[testenv:cover]