[pyfai] 03/04: switch to dh-python

Frédéric-Emmanuel Picca picca at moszumanska.debian.org
Fri Jan 2 14:15:54 UTC 2015


This is an automated email from the git hooks/post-receive script.

picca pushed a commit to branch master
in repository pyfai.

commit 3628ff92efa7db1ca69bd990db9ee093d656492b
Author: Picca Frédéric-Emmanuel <picca at debian.org>
Date:   Fri Jan 2 15:09:05 2015 +0100

    switch to dh-python
---
 debian/control |  3 +++
 debian/rules   | 17 +++--------------
 2 files changed, 6 insertions(+), 14 deletions(-)

diff --git a/debian/control b/debian/control
index 70e99d4..41d6cd3 100644
--- a/debian/control
+++ b/debian/control
@@ -6,12 +6,15 @@ Section: science
 Priority: extra
 Build-Depends: cython,
                debhelper (>= 9),
+               dh-python,
                python-all-dev,
                python-fabio,
                python-fftw,
+               python-h5py,
                python-lxml,
                python-matplotlib,
                python-numpy,
+               python-qt4,
                python-scipy,
                python-tk
 Standards-Version: 3.9.6
diff --git a/debian/rules b/debian/rules
index bf4eb23..bbe199b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,7 +2,8 @@
 
 export DH_VERBOSE=1
 
-PYVERS=$(shell pyversions -vs)
+%:
+	dh $@ --with python2 --buildsystem=pybuild
 
 # do not remove the histogram.c file this code is there
 # beacuse git-buildpackage is run without eh patch applyed. It
@@ -24,17 +25,5 @@ override_dh_auto_install:
 	dh_auto_install
 	dh_numpy
 
-#override_dh_auto_test:
-#	dh_auto_test
-#ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
-#	set -e -x; \
-#	for py in $(PYVERS); do \
-#		env http_proxy='localhost' python$$py setup.py test;\
-#	done
-#endif
-
-#skip tests
 override_dh_auto_test:
-
-%:
-	dh $@ --with python2
+	dh_auto_test -- -s custom --test-args="env PYTHONPATH={build_dir} {interpreter} test/test_all.py"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyfai.git



More information about the debian-science-commits mailing list