[Python-modules-commits] r20759 - in packages/python-xmp-toolkit/trunk/debian (changelog rules)
jwilk at users.alioth.debian.org
jwilk at users.alioth.debian.org
Tue Mar 13 15:40:28 UTC 2012
Date: Tuesday, March 13, 2012 @ 15:40:27
Author: jwilk
Revision: 20759
Use xargs to iterate over all Python versions.
Don't ignore test suite failures.
Modified:
packages/python-xmp-toolkit/trunk/debian/changelog
packages/python-xmp-toolkit/trunk/debian/rules
Modified: packages/python-xmp-toolkit/trunk/debian/changelog
===================================================================
--- packages/python-xmp-toolkit/trunk/debian/changelog 2012-03-13 15:25:58 UTC (rev 20758)
+++ packages/python-xmp-toolkit/trunk/debian/changelog 2012-03-13 15:40:27 UTC (rev 20759)
@@ -2,8 +2,10 @@
* Bump standards version to 3.9.3.
+ Update debian/copyright URI.
+ * Use xargs to iterate over all Python versions.
+ * Don't ignore test suite failures.
- -- Jakub Wilk <jwilk at debian.org> Sat, 03 Mar 2012 00:11:39 +0100
+ -- Jakub Wilk <jwilk at debian.org> Tue, 13 Mar 2012 16:39:22 +0100
python-xmp-toolkit (1.0.2+dfsg-1) experimental; urgency=low
Modified: packages/python-xmp-toolkit/trunk/debian/rules
===================================================================
--- packages/python-xmp-toolkit/trunk/debian/rules 2012-03-13 15:25:58 UTC (rev 20758)
+++ packages/python-xmp-toolkit/trunk/debian/rules 2012-03-13 15:40:27 UTC (rev 20759)
@@ -4,6 +4,8 @@
debian_version = $(word 2, $(shell cd $(here) && dpkg-parsechangelog | grep ^Version:))
upstream_dfsg_version = $(firstword $(subst -, ,$(debian_version)))
+python_all = pyversions -r $(CURDIR)/debian/control | tr ' ' '\n' | xargs -t -I {} env {}
+
.PHONY: get-orig-source
get-orig-source:
sh $(here)/debian/get-orig-source.sh $(upstream_dfsg_version)
@@ -18,15 +20,9 @@
build build-indep:
dh_testdir
set -ex; \
- for python in $(shell pyversions -r); do \
- $$python setup.py build; \
- done
-ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
- -cd test && \
- set -ex; \
- for python in $(shell pyversions -r); do \
- $$python test_all.py; \
- done
+ $(python_all) setup.py build
+ifeq "$(filter nocheck,$(DEB_BUILD_OPTIONS))" ""
+ cd test && $(python_all) test_all.py
endif
.PHONY: binary binary-arch binary-indep
@@ -34,9 +30,7 @@
dh_testdir
dh_testroot
dh_prep
- for python in $(shell pyversions -r); do \
- $$python setup.py install --prefix=/usr --root=debian/python-libxmp/; \
- done
+ $(python_all) setup.py install --prefix=/usr --root=debian/python-libxmp/
sed -i 's/Metadata-Version: 1\.0/Metadata-Version: 1\.1/' debian/python-libxmp/usr/lib/python2.*/*-packages/*.egg-info
dh_installdocs AUTHORS README docs_src/using.rst
dh_installchangelogs
More information about the Python-modules-commits
mailing list