[med-svn] [python-pbcore] 01/03: Improve build-time testing
Afif Elghraoui
afif-guest at moszumanska.debian.org
Fri Aug 7 06:16:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
afif-guest pushed a commit to branch master
in repository python-pbcore.
commit 49ccfa97679d8f77998ebcd7d844a835ef349a4c
Author: Afif Elghraoui <afif at ghraoui.name>
Date: Thu Aug 6 21:51:26 2015 -0700
Improve build-time testing
Use 2to3 to convert the build scripts so that the tests can
run properly with python3.
---
debian/patches/enable-build-time-testing.patch | 9 ++++++++-
debian/rules | 3 +++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/debian/patches/enable-build-time-testing.patch b/debian/patches/enable-build-time-testing.patch
index e5c7bbc..88c722b 100644
--- a/debian/patches/enable-build-time-testing.patch
+++ b/debian/patches/enable-build-time-testing.patch
@@ -1,3 +1,10 @@
+Description: Modify setuptools configuration to use nosetests
+ Configure nose setuptools configuration as described in
+ https://nose.readthedocs.org/en/latest/setuptools_integration.html
+ and the manpage for the executable
+Author: Afif Elghraoui <afif at ghraoui.name>
+Forwarded: not-needed
+Last-Update: 2015-08-06
--- python-pbcore.orig/setup.cfg
+++ python-pbcore/setup.cfg
@@ -1,2 +1,5 @@
@@ -5,7 +12,7 @@
description-file = README.md
+[nosetests]
+verbosity=2
-+where=tests
++where=temptests
--- python-pbcore.orig/setup.py
+++ python-pbcore/setup.py
@@ -29,6 +29,7 @@
diff --git a/debian/rules b/debian/rules
index b986e1a..aeb13e8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,5 +20,8 @@ get-orig-source:
override_dh_auto_test:
PYBUILD_SYSTEM=custom \
+ PYBUILD_BEFORE_TEST="cp -rv {dir}/tests {dir}/temptests" \
+ PYBUILD_BEFORE_TEST_python3="cp -rv {dir}/tests {dir}/temptests; 2to3 -w --no-diffs {dir}/temptests" \
+ PYBUILD_AFTER_TEST="rm -rfv {dir}/temptests" \
PYBUILD_TEST_ARGS="{interpreter} setup.py test" \
dh_auto_test
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-pbcore.git
More information about the debian-med-commit
mailing list