[python-bumps] 02/05: Enable build-time tests

Stuart Prescott stuart at debian.org
Fri Nov 3 13:15:35 UTC 2017


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

stuart pushed a commit to branch master
in repository python-bumps.

commit 24f8f40ff090c4f6141248399715ae78c4aae56c
Author: Stuart Prescott <stuart at debian.org>
Date:   Sat Nov 4 00:01:22 2017 +1100

    Enable build-time tests
---
 debian/control | 9 ++++++++-
 debian/rules   | 9 +++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index df86336..72d06ca 100644
--- a/debian/control
+++ b/debian/control
@@ -10,15 +10,21 @@ Build-Depends:
  dh-python,
  python-all,
  python-matplotlib,
+ python-nose,
  python-numpy,
  python-scipy,
  python-setuptools,
+ python-six,
+ python-sklearn,
  python-sphinx,
  python3-all,
  python3-matplotlib,
+ python3-nose,
  python3-numpy,
  python3-scipy,
  python3-setuptools,
+ python3-six,
+ python3-sklearn,
  python3-sphinx,
  texinfo
 Standards-Version: 4.1.1
@@ -35,7 +41,8 @@ Depends:
  ${misc:Depends},
  ${python:Depends}
 Suggests:
- python-bumps-doc
+ python-bumps-doc,
+ python-sklearn
 Description: data fitting and Bayesian uncertainty modeling for inverse problems (Python 2)
  Bumps is a set of routines for curve fitting and uncertainty analysis
  from a Bayesian perspective. In addition to traditional optimizers
diff --git a/debian/rules b/debian/rules
index 1ee7cbe..e068bc8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,3 +23,12 @@ override_dh_installinfo:
 	sed "s/@image{/@image{bumps-/" -i bumps.texi; \
 	makeinfo bumps.texi
 	dh_installinfo
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+	LC_ALL=C.UTF-8 \
+	  PYBUILD_SYSTEM=custom \
+	  PYBUILD_BEFORE_TEST="cp test.py {build_dir}" \
+	  PYBUILD_TEST_ARGS="python{version} test.py" \
+	  dh_auto_test
+endif

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



More information about the debian-science-commits mailing list