[lmfit-py] 04/06: add the unit test

Frédéric-Emmanuel Picca picca at moszumanska.debian.org
Tue Dec 30 17:57:47 UTC 2014


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

picca pushed a commit to branch master
in repository lmfit-py.

commit c972508d7d93fde6ffdf5cba512a3e12d91192a3
Author: Picca Frédéric-Emmanuel <picca at debian.org>
Date:   Tue Dec 30 17:59:21 2014 +0100

    add the unit test
---
 debian/changelog |  3 ++-
 debian/control   | 10 +++++++++-
 debian/rules     | 20 ++++++++++++++++++--
 3 files changed, 29 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index e093d6c..60b8afe 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,9 @@
 lmfit-py (0.8.2+dfsg.1-1) UNRELEASED; urgency=medium
 
   * Imported Upstream version 0.8.2+dfsg.1
+  * Run the test suite during the build
 
- -- Picca Frédéric-Emmanuel <picca at debian.org>  Sun, 16 Nov 2014 21:18:53 +0100
+ -- Picca Frédéric-Emmanuel <picca at debian.org>  Thu, 30 Dec 2014 14:18:53 +0100
 
 lmfit-py (0.8.0+dfsg.1-1) unstable; urgency=medium
 
diff --git a/debian/control b/debian/control
index a646701..b824172 100644
--- a/debian/control
+++ b/debian/control
@@ -6,18 +6,26 @@ Priority: extra
 Build-Depends: debhelper (>= 9),
                dh-python,
                dvipng,
-               ipython,
+               ipython-notebook,
+               ipython3-notebook,
                python-all,
                python-matplotlib,
+               python-nose,
                python-numpy,
                python-numpydoc,
+               python-pandas,
                python-scipy,
                python-setuptools,
                python-sphinx,
+               python-tk,
                python3-all,
+               python3-matplotlib,
+               python3-nose,
                python3-numpy,
+               python3-pandas,
                python3-scipy,
                python3-setuptools,
+               python3-tk,
                texlive-latex-extra
 Standards-Version: 3.9.5
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/lmfit-py.git
diff --git a/debian/rules b/debian/rules
index 996e120..eba03d9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,10 +1,20 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
-# Uncomment this to turn on verbose mode.
-export DH_VERBOSE=1
+## Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+#export NOSE_VERBOSE=2
+
 export PYBUILD_NAME=lmfit
 
+## This might have been used, but doctest should be optional
+## https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749506
+#export PYBUILD_TEST_NOSE=1
+
+# copy the tests to the build dir to be able to pass nose
+export PYBUILD_AFTER_BUILD=cp -r tests {build_dir}
+export PYBUILD_BEFORE_INSTALL=rm -fr {build_dir}/tests
+
 %:
 	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
@@ -21,3 +31,9 @@ override_dh_install:
 override_dh_auto_build:
 	dh_auto_build
 	PYTHONPATH=. http_proxy='localhost' sphinx-build -N -bhtml doc/ build/html  # HTML generator
+
+## should be removed once #749506 solved
+override_dh_auto_test:
+	PYBUILD_SYSTEM=custom \
+	PYBUILD_TEST_ARGS='cd {build_dir} && {interpreter} -m nose' \
+	dh_auto_test --buildsystem=pybuild

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



More information about the debian-science-commits mailing list