[Python-modules-commits] [python-cycler] 06/08: run tests at build time; Closes: #800908

Sandro Tosi morph at moszumanska.debian.org
Sat Apr 9 21:31:09 UTC 2016


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

morph pushed a commit to branch master
in repository python-cycler.

commit 36956a429e567639e5500666ceed4390018a7f62
Author: Sandro Tosi <morph at debian.org>
Date:   Sat Apr 9 11:30:59 2016 +0100

    run tests at build time; Closes: #800908
---
 debian/changelog |  4 +++-
 debian/control   |  2 +-
 debian/rules     | 10 ++++++++++
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index fc71314..3b0cf86 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,12 +5,14 @@ python-cycler (0.10.0-1) UNRELEASED; urgency=medium
   * debian/control
     - update Homepage
     - bump Standards-Version to 3.9.7 (no changes needed)
+  * debian/{control, rules}
+    - run tests at build time; Closes: #800908
 
   [ Ondřej Nový ]
   * Fixed homepage (https)
   * Fixed VCS URL (https)
 
- -- Sandro Tosi <morph at debian.org>  Sat, 09 Apr 2016 11:20:58 +0100
+ -- Sandro Tosi <morph at debian.org>  Sat, 09 Apr 2016 11:30:38 +0100
 
 python-cycler (0.9.0-1) unstable; urgency=low
 
diff --git a/debian/control b/debian/control
index 5ea1728..45668c8 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: python
 Priority: optional
 Maintainer: Sandro Tosi <morph at debian.org>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 9), python-all, python3-all, dh-python, python-six, python3-six, python-setuptools, python3-setuptools
+Build-Depends: debhelper (>= 9), python-all, python3-all, dh-python, python-six, python3-six, python-setuptools, python3-setuptools, python-nose, python3-nose
 Standards-Version: 3.9.7
 Homepage: http://matplotlib.org/cycler/
 Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-cycler.git
diff --git a/debian/rules b/debian/rules
index ab4b0fc..332213a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,6 +17,16 @@ override_dh_auto_build:
 		$$python setup.py build; \
 	done
 
+override_dh_auto_test:
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
+	# run tests
+	for python in $(PY2VERS) $(PY3VERS); do \
+		echo "running tests on "$$python ; \
+	        LIB=$$($$python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print(b.build_purelib)") ; \
+	        PYTHONPATH=$(CURDIR)/$$LIB $$python /usr/bin/nosetests . ; \
+	done
+endif
+
 override_dh_auto_install:
 	set -e ; \
 	for python in $(PY2VERS); do \

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



More information about the Python-modules-commits mailing list