[Python-modules-commits] [python-django-debug-toolbar] 05/08: Invoke tests via pybuild.

Andrew Starr-Bochicchio asb at moszumanska.debian.org
Mon Dec 25 15:47:28 UTC 2017


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

asb pushed a commit to branch master
in repository python-django-debug-toolbar.

commit 652dcede4f30565a2082d5875ba96e519247236c
Author: Andrew Starr-Bochicchio <a.starr.b at gmail.com>
Date:   Mon Dec 25 10:28:39 2017 -0500

    Invoke tests via pybuild.
---
 debian/changelog | 1 +
 debian/rules     | 9 ++++-----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index d04d9d0..80d81ce 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ python-django-debug-toolbar (1:1.9.1-1) UNRELEASED; urgency=medium
   * New upstream release.
   * Add missing autopkgtest dependency on python{3}-django-jinja.
     Closes: #883056 Thanks to Steve Langasek.  
+  * Invoke tests via pybuild.
 
  -- Andrew Starr-Bochicchio <asb at debian.org>  Mon, 25 Dec 2017 09:15:39 -0500
 
diff --git a/debian/rules b/debian/rules
index cfa444b..1673863 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,16 +5,15 @@ PYTHON3_VERSIONS=$(shell py3versions -vr)
 PYTHON_VERSIONS=${PYTHON2_VERSIONS} ${PYTHON3_VERSIONS}
 
 export PYBUILD_NAME=django-debug-toolbar
-export PYBUILD_TEST_PYTEST=1
 
 %:
 	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-test-python%:
-	PYTHONPATH=. DJANGO_SETTINGS_MODULE=tests.settings python$* /usr/bin/django-admin test tests
-
-override_dh_auto_test: $(foreach pyversion,${PYTHON_VERSIONS},$(pyversion:%=test-python%))
+override_dh_auto_test:
+	PYBUILD_SYSTEM=custom \
+	PYBUILD_TEST_ARGS="PYTHONPATH=. DJANGO_SETTINGS_MODULE=tests.settings django-admin test tests" \
+	dh_auto_test
 endif
 
 override_dh_auto_build:

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



More information about the Python-modules-commits mailing list