[SCM] Packaging for pytables branch, master, updated. debian/2.1.2-3.1-5-gbb708b4

Antonio Valentino antonio.valentino at tiscali.it
Sat Jan 21 19:09:51 UTC 2012


The following commit has been merged in the master branch:
commit bb708b431c3265975db61f9a64dd6f6f08a062b9
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date:   Sat Jan 21 19:40:38 2012 +0100

    Enabled automatic testing

diff --git a/debian/changelog b/debian/changelog
index 131bb0e..6cfc6ba 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,8 +12,9 @@ pytables (2.3.1-1) unstable; urgency=low
   * No more play with gzip in debian/rules (Closes: #551392)
   * The package is now maintained under the unbrella of debian-science
   * Added a debian/README.source file
+  * Enabled automatic testing
 
- -- Antonio Valentino <antonio.valentino at tiscali.it>  Sat, 21 Jan 2012 10:30:17 +0100
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Sat, 21 Jan 2012 19:38:22 +0100
 
 pytables (2.1.2-3.1) unstable; urgency=low
 
diff --git a/debian/rules b/debian/rules
index cbe1c3f..21ce03c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+PYVERS=$(shell pyversions -vs)
 
 %:
 	dh $@ --with python2 --with sphinxdoc --buildsystem=python_distutils
@@ -33,5 +34,15 @@ override_dh_compress:
 	dh_compress -X.txt -X.pdf -X.py -X.h5
 
 
+override_dh_auto_install:
+	dh_auto_install
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+	-for v in $(PYVERS); do \
+		cd "$(CURDIR)/debian/tmp/usr/lib/python$$v/dist-packages/"; \
+		python$$v -c "import tables; tables.test()"; \
+	done
+endif
+
+
 .PHONY: override_dh_auto_build override_dh_auto_clean override_dh_sphinxdoc \
-        override_dh_compress override_dh_installchangelogs
+        dh_auto_install override_dh_installchangelogs override_dh_compress

-- 
Packaging for pytables



More information about the debian-science-commits mailing list