This is an automated email from the git hooks/post-receive script. afif-guest pushed a commit to branch topic/pybuild-intended-testsetup in repository python-pbcore.
commit faa6f7e31296e230f4fe4546911efd5bb5b06d87 Author: Afif Elghraoui <a...@ghraoui.name> Date: Wed Aug 5 01:43:11 2015 -0700 Set up debian/rules for running the tests as pybuild intended This is how pybuild was supposed to work. Unfortunately, the PYTHONPATH does not get set correctly and the tests all fail because they can't find the package module. See: https://lists.debian.org/debian-python/2015/07/msg00062.html Example of a crazy workaround: https://lists.debian.org/debian-python/2014/05/msg00148.html --- debian/rules | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index 0865054..cf19a6a 100755 --- a/debian/rules +++ b/debian/rules @@ -5,6 +5,9 @@ include /usr/share/dpkg/default.mk export PYBUILD_NAME = pbcore +export PYBUILD_TEST_NOSE = 1 +export PYBUILD_TEST_ARGS = {dir}/tests + %: LC_ALL=C.UTF-8 dh $@ --with python2,python3 --buildsystem=pybuild @@ -18,5 +21,3 @@ override_dh_installdocs: get-orig-source: uscan --verbose --force-download --repack --rename --compression xz -# test requires the package itself to be installed... -override_dh_auto_test: -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-pbcore.git _______________________________________________ debian-med-commit mailing list debian-med-commit@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit