[Python-modules-commits] [python-uritools] 10/12: Run tests as part of build

Stein Magnus Jodal jodal at moszumanska.debian.org
Thu Nov 5 23:15:22 UTC 2015


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

jodal pushed a commit to branch master
in repository python-uritools.

commit 87dfd2b91bc2f10d2a655bdcbc67287f3c4d3fbd
Author: Stein Magnus Jodal <jodal at debian.org>
Date:   Thu Nov 5 23:35:20 2015 +0100

    Run tests as part of build
---
 debian/changelog | 3 +++
 debian/control   | 2 ++
 debian/rules     | 3 ++-
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 7e58de5..12fa119 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,8 +5,11 @@ python-uritools (1.0.1-2) UNRELEASED; urgency=medium
   * debian/control
     - Set DPMT as maintainer, myself as uploader
     - Update Vcs-Git and Vcs-Browser to point to Alioth
+    - Build-Depend on python{,3}-nose to run tests
   * debian/copyright
     - Update my email address
+  * debian/rules
+    - Run tests as part of build
 
  -- Stein Magnus Jodal <jodal at debian.org>  Thu, 05 Nov 2015 21:50:19 +0100
 
diff --git a/debian/control b/debian/control
index ffff2ce..0af4a85 100644
--- a/debian/control
+++ b/debian/control
@@ -7,9 +7,11 @@ Build-Depends: debhelper (>= 9),
                dh-python,
                python-all (>= 2.7),
                python-ipaddress,
+               python-nose,
                python-setuptools,
                python-sphinx | python3-sphinx,
                python3-all (>= 3.2),
+               python3-nose,
                python3-setuptools,
 Standards-Version: 3.9.6
 Homepage: https://github.com/tkem/uritools
diff --git a/debian/rules b/debian/rules
index d41e602..ab032ef 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,8 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-export PYBUILD_DISABLE=test
+export PYBUILD_BEFORE_TEST=cp -r {dir}/tests {build_dir}
+export PYBUILD_TEST_NOSE=1
 
 %:
 	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild

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



More information about the Python-modules-commits mailing list