1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
#!/usr/bin/make -f
%:
dh $@ --with python2
override_dh_auto_test:
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
mkdir build/home
set -ex; \
for python in $(shell pyversions -r); do \
HOME=build/home $$python setup.py test; \
done
endif
override_dh_auto_clean:
dh_auto_clean
rm -rf build
override_dh_installchangelogs:
dh_installchangelogs src/launchpadlib/NEWS.txt
override_dh_python2:
dh_python2 --no-guessing-deps
get-packaged-orig-source:
set -e; \
VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^+]+).*,\1,p'); \
uscan --noconf --download-current-version --destdir=. --rename; \
tar -xf python-launchpadlib_$$VER.orig.tar.gz; \
rm python-launchpadlib_$$VER.orig.tar.gz; \
rm -r launchpadlib-$$VER/eggs; \
GZIP=--best tar -cz --owner root --group root --mode a+rX \
-f python-launchpadlib_$$VER+ds.orig.tar.gz launchpadlib-$$VER; \
rm -r launchpadlib-$$VER
|