PBR

Comment 3 for bug 1256138

Revision history for this message
Antoine "hashar" Musso (hashar) wrote :

I have the issue with the python-gear package. Thomas "zigo" Goirand converted it to be more in line with the other OpenStack packages.

Source repo: git.debian.org/git/python-modules/packages/python-gear.git

Abstract from a build with Debian/sid and a fresh cowbuilder env:

***********************
dpkg-buildpackage: source package python-gear
dpkg-buildpackage: source version 0.5.7-1

dpkg-checkbuilddeps: Unmet build dependencies: python-all python-pbr
dpkg-checkbuilddeps: Unmet build dependencies: python-all python-pbr

dh clean --with python2,python3
   dh_testdir
   dh_auto_clean
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
        python setup.py clean -a

Installed /home/hashar/projects/debian/build-area/python-gear-0.5.7/pbr-0.5.7-py2.7.egg
running clean

***********************

debian/rules has

  UPSTREAM_GIT = git://github.com/openstack-infra/gear.git
  export OSLO_PACKAGE_VERSION=$(VERSION)

If I drop the OSLO_PACKAGE_VERSION, pbr.packaging yields:

 Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?

I am not familiar at all with the openstack-package-tool though.