[Python-modules-commits] r12007 - in packages/uncertainties/trunk/debian (3 files)

jwilk at users.alioth.debian.org jwilk at users.alioth.debian.org
Sun Feb 28 11:29:43 UTC 2010


    Date: Sunday, February 28, 2010 @ 11:29:40
  Author: jwilk
Revision: 12007

* Run tests at build time.
  + Build-depend on python-all and python-nose.

Modified:
  packages/uncertainties/trunk/debian/changelog
  packages/uncertainties/trunk/debian/control
  packages/uncertainties/trunk/debian/rules

Modified: packages/uncertainties/trunk/debian/changelog
===================================================================
--- packages/uncertainties/trunk/debian/changelog	2010-02-28 11:08:29 UTC (rev 12006)
+++ packages/uncertainties/trunk/debian/changelog	2010-02-28 11:29:40 UTC (rev 12007)
@@ -1,8 +1,10 @@
 uncertainties (1.4.5-1) UNRELEASED; urgency=low
 
   * New upstream release.
+  * Run tests at build time.
+    + Build-depend on python-all and python-nose.
 
- -- Jakub Wilk <jwilk at debian.org>  Sun, 28 Feb 2010 11:58:23 +0100
+ -- Jakub Wilk <jwilk at debian.org>  Sun, 28 Feb 2010 12:09:00 +0100
 
 uncertainties (1.4.1-1) unstable; urgency=low
 

Modified: packages/uncertainties/trunk/debian/control
===================================================================
--- packages/uncertainties/trunk/debian/control	2010-02-28 11:08:29 UTC (rev 12006)
+++ packages/uncertainties/trunk/debian/control	2010-02-28 11:29:40 UTC (rev 12007)
@@ -2,7 +2,7 @@
 Maintainer: Jakub Wilk <jwilk at debian.org>
 Section: python
 Priority: optional
-Build-Depends: debhelper (>= 7.0.50~), python-support (>= 0.90), python (>= 2.5)
+Build-Depends: debhelper (>= 7.0.50~), python-support (>= 0.90), python-all (>= 2.5), python-nose
 Standards-Version: 3.8.4
 XS-Python-Version: >= 2.5
 Homepage: http://pypi.python.org/pypi/uncertainties/

Modified: packages/uncertainties/trunk/debian/rules
===================================================================
--- packages/uncertainties/trunk/debian/rules	2010-02-28 11:08:29 UTC (rev 12006)
+++ packages/uncertainties/trunk/debian/rules	2010-02-28 11:29:40 UTC (rev 12007)
@@ -15,6 +15,14 @@
 	| fmt > changelog
 	dh_installchangelogs
 
+.PHONY: override_dh_auto_test
+override_dh_auto_test:
+	set -e; \
+	cd uncertainties; \
+	for python in $(shell pyversions -r); do \
+		$$python /usr/bin/nosetests; \
+	done
+
 .PHONY: build build-arch build-indep binary binary-indep clean
 build build-indep binary binary-indep clean:
 	dh $(@)




More information about the Python-modules-commits mailing list