[Python-apps-commits] r5407 - in packages/djvusmooth/trunk/debian (changelog control rules)

jwilk at users.alioth.debian.org jwilk at users.alioth.debian.org
Tue Jun 15 20:05:25 UTC 2010


    Date: Tuesday, June 15, 2010 @ 20:05:12
  Author: jwilk
Revision: 5407

Run doctests at build time.

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

Modified: packages/djvusmooth/trunk/debian/changelog
===================================================================
--- packages/djvusmooth/trunk/debian/changelog	2010-06-15 19:50:17 UTC (rev 5406)
+++ packages/djvusmooth/trunk/debian/changelog	2010-06-15 20:05:12 UTC (rev 5407)
@@ -2,8 +2,10 @@
 
   * New upstream release:
     + Fix crash after save (closes: #585896).
+  * Run doctests at build time.
+    + Build-depend on python-nose.
 
- -- Jakub Wilk <jwilk at debian.org>  Tue, 15 Jun 2010 21:49:04 +0200
+ -- Jakub Wilk <jwilk at debian.org>  Tue, 15 Jun 2010 22:03:05 +0200
 
 djvusmooth (0.2.4-1) unstable; urgency=low
 

Modified: packages/djvusmooth/trunk/debian/control
===================================================================
--- packages/djvusmooth/trunk/debian/control	2010-06-15 19:50:17 UTC (rev 5406)
+++ packages/djvusmooth/trunk/debian/control	2010-06-15 20:05:12 UTC (rev 5407)
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Jakub Wilk <jwilk at debian.org>
 Uploaders: Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 7.0.50~), python-support (>= 0.90), gettext
+Build-Depends: debhelper (>= 7.0.50~), python-support (>= 0.90), gettext, python-nose
 XS-Python-Version: all
 Standards-Version: 3.8.4
 Homepage: http://jwilk.net/software/djvusmooth

Modified: packages/djvusmooth/trunk/debian/rules
===================================================================
--- packages/djvusmooth/trunk/debian/rules	2010-06-15 19:50:17 UTC (rev 5406)
+++ packages/djvusmooth/trunk/debian/rules	2010-06-15 20:05:12 UTC (rev 5407)
@@ -14,6 +14,15 @@
 override_dh_auto_build:
 	./update-i18n
 
+.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 /usr/bin/nosetests --verbose --with-doctest; \
+	done
+endif
+
 .PHONY: install
 install: build
 	dh install




More information about the Python-apps-commits mailing list