Using pkgos-dh_auto_install from openstack-pkg-tools >= 52~.

This commit is contained in:
Thomas Goirand 2016-07-13 14:11:23 +00:00
parent 3ee047c6b9
commit a19062d18c
3 changed files with 3 additions and 14 deletions

1
debian/changelog vendored
View File

@ -8,6 +8,7 @@ python-cliff (2.1.0-1) experimental; urgency=medium
* Remove arparse in requirements.txt patch.
* Fixed (build-)depends for this release.
* Removed Py 3.5 unit test patch.
* Using pkgos-dh_auto_install from openstack-pkg-tools >= 52~.
-- Thomas Goirand <zigo@debian.org> Wed, 13 Jul 2016 13:48:36 +0000

2
debian/control vendored
View File

@ -6,7 +6,7 @@ Uploaders: Jan Dittberner <jandd@debian.org>,
Thomas Goirand <zigo@debian.org>,
Build-Depends: debhelper (>= 9),
dh-python,
openstack-pkg-tools,
openstack-pkg-tools (>= 52~),
python-all,
python-setuptools,
python-pbr (>= 1.8),

14
debian/rules vendored
View File

@ -1,25 +1,13 @@
#!/usr/bin/make -f
PYTHONS:=$(shell pyversions -vr)
PYTHON3S:=$(shell py3versions -vr)
UPSTREAM_GIT := https://github.com/openstack/cliff.git
include /usr/share/openstack-pkg-tools/pkgos.make
export OSLO_PACKAGE_VERSION=$(shell dpkg-parsechangelog | grep Version: | cut -d' ' -f2 | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//' -e 's/~/.0/' | head -n 1)
%:
dh $@ --with python2,python3,sphinxdoc --buildsystem=python_distutils
override_dh_auto_install:
set -e ; for pyvers in $(PYTHONS); do \
python$$pyvers setup.py install --install-layout=deb \
--root $(CURDIR)/debian/python-cliff; \
done
set -e ; for pyvers in $(PYTHON3S); do \
python$$pyvers setup.py install --install-layout=deb \
--root $(CURDIR)/debian/python3-cliff; \
done
pkgos-dh_auto_install
override_dh_installchangelogs:
dh_installchangelogs -O--buildsystem=python_distutils doc/source/history.rst