[Python-modules-commits] r13631 - in packages/python-pipeline/trunk/debian (3 files)

jwilk at users.alioth.debian.org jwilk at users.alioth.debian.org
Fri Jun 25 17:32:07 UTC 2010


    Date: Friday, June 25, 2010 @ 17:32:04
  Author: jwilk
Revision: 13631

* Make debian/rules a bit more compact.
* Run tests at build time.
* Require debhelper (>= 7.0.50~), as overrides are being used.

Modified:
  packages/python-pipeline/trunk/debian/changelog
  packages/python-pipeline/trunk/debian/control
  packages/python-pipeline/trunk/debian/rules

Modified: packages/python-pipeline/trunk/debian/changelog
===================================================================
--- packages/python-pipeline/trunk/debian/changelog	2010-06-25 17:31:56 UTC (rev 13630)
+++ packages/python-pipeline/trunk/debian/changelog	2010-06-25 17:32:04 UTC (rev 13631)
@@ -1,8 +1,11 @@
-python-pipeline (0.1.1-4) UNRELEASED; urgency=low
+python-pipeline (0.1.1-5) UNRELEASED; urgency=low
 
   * Update the watch file.
+  * Make debian/rules a bit more compact.
+  * Run tests at build time.
+  * Require debhelper (>= 7.0.50~), as overrides are being used.
 
- -- Jakub Wilk <jwilk at debian.org>  Thu, 13 May 2010 00:32:47 +0200
+ -- Jakub Wilk <jwilk at debian.org>  Fri, 25 Jun 2010 19:28:22 +0200
 
 python-pipeline (0.1.1-3) unstable; urgency=low
 

Modified: packages/python-pipeline/trunk/debian/control
===================================================================
--- packages/python-pipeline/trunk/debian/control	2010-06-25 17:31:56 UTC (rev 13630)
+++ packages/python-pipeline/trunk/debian/control	2010-06-25 17:32:04 UTC (rev 13631)
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Jakub Wilk <jwilk at debian.org>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 7), python-all, python-support (>= 0.6.4)
+Build-Depends: debhelper (>= 7.0.50~), python-all, python-support (>= 0.6.4)
 Standards-Version: 3.8.4
 XS-Python-Version: >= 2.4
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-pipeline/trunk

Modified: packages/python-pipeline/trunk/debian/rules
===================================================================
--- packages/python-pipeline/trunk/debian/rules	2010-06-25 17:31:56 UTC (rev 13630)
+++ packages/python-pipeline/trunk/debian/rules	2010-06-25 17:32:04 UTC (rev 13631)
@@ -1,31 +1,18 @@
 #!/usr/bin/make -f
 
-.PHONY: build
-build:
-	dh build
+.PHONY: override_dh_auto_test
+override_dh_auto_test:
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
+	set -e -x; \
+	for python in $(shell pyversions -r); do \
+		$$python -c 'import pipeline as p, doctest as d; d.testmod(p, report=1)'; \
+	done
+endif
 
-.PHONY: build-arch
-build-arch:
-
-.PHONY: build-indep
-build-indep: build
-
-.PHONY: install
-install: build
-	dh install
-
-.PHONY: binary
-binary:
-	dh binary
-
-.PHONY: binary-arch
+.PHONY: build build-arch build-indep binary binary-arch binary-indep clean
+build build-arch build-indep binary binary-indep clean:
+	dh $(@)
+# In order not to confuse lintian, binary-arch is a separate target:
 binary-arch:
 
-.PHONY: binary-indep
-binary-indep: binary
-
-.PHONY: clean
-clean:
-	dh clean
-
 # vim:ts=4 sw=4 noet




More information about the Python-modules-commits mailing list