[Python-modules-commits] [bibtexparser] 03/06: d/control: remove python-nose d/rules: use pybuild for testing

Alex Mestiashvili malex-guest at moszumanska.debian.org
Fri Jan 15 13:50:47 UTC 2016


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

malex-guest pushed a commit to branch master
in repository bibtexparser.

commit 78d8cf00dc076c7e3cd327fc144fbe3b4a993c18
Author: Alexandre Mestiashvili <alex at biotec.tu-dresden.de>
Date:   Fri Jan 15 10:41:17 2016 +0100

    d/control: remove python-nose
    d/rules: use pybuild for testing
---
 debian/control | 2 --
 debian/rules   | 6 +++---
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/debian/control b/debian/control
index 1120742..5a80682 100644
--- a/debian/control
+++ b/debian/control
@@ -5,12 +5,10 @@ Priority: optional
 Build-Depends: debhelper (>= 9),
                dh-python,
                python-all,
-               python-nose,
                python-setuptools,
                python-sphinx,
                python-unittest2,
                python3-all,
-               python3-nose,
                python3-setuptools,
                python3-sphinx,
                python3-unittest2
diff --git a/debian/rules b/debian/rules
index 1b322cb..06f6ee2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,9 @@
 #!/usr/bin/make -f
 
 export PYBUILD_NAME=bibtexparser
+export PYBUILD_BEFORE_TEST=cp -r {dir}/bibtexparser {build_dir};cd {build_dir}; pwd
+export PYBUILD_TEST_ARGS={build_dir}/bibtexparser/tests/
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/bibtexparser/
 
 %:
 	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
@@ -9,9 +12,6 @@ override_dh_auto_build:
 	dh_auto_build
 	cd $(CURDIR)/docs && make html
 
-override_dh_auto_test:
-	dh_auto_test -- --system=custom --test-args="nosetests -v $(CURDIR)/$(PYBUILD_NAME)/tests"
-
 override_dh_installdocs:
 	dh_installdocs -ppython-bibtexparser-doc docs/build/html
 	dh_installdocs -A

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



More information about the Python-modules-commits mailing list