[Python-modules-commits] [python-m3u8] 02/02: d/rules: Use pybuild for running tests

Ondřej Nový onovy at moszumanska.debian.org
Sun Aug 7 13:11:52 UTC 2016


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

onovy pushed a commit to branch master
in repository python-m3u8.

commit 375701ecf0b8c53a73f7b6769c8f2412377c8da3
Author: Ondřej Nový <onovy at debian.org>
Date:   Sun Aug 7 15:06:56 2016 +0200

    d/rules: Use pybuild for running tests
---
 debian/changelog |  1 +
 debian/rules     | 10 +---------
 2 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 551350a..a15d62b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 python-m3u8 (0.2.9-2) UNRELEASED; urgency=medium
 
   * Bump required version of dh-python to 2.20160609~
+  * d/rules: Use pybuild for running tests
 
  -- Ondřej Nový <onovy at debian.org>  Sun, 07 Aug 2016 14:43:54 +0200
 
diff --git a/debian/rules b/debian/rules
index 2d8b17b..daeeaad 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,9 +3,6 @@
 #export DH_VERBOSE = 1
 export PYBUILD_NAME = m3u8
 
-PYTHONS:=$(shell pyversions -vr)
-PYTHON3S:=$(shell py3versions -vr)
-
 %:
 	dh $@ --with python2,python3 --buildsystem=pybuild
 
@@ -17,11 +14,6 @@ ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
 	set -e ; \
 	python tests/m3u8server.py >/dev/null 2>&1 & \
 	PID=$$! ; \
-	for pyvers in $(PYTHONS); do \
-		PYTHONPATH=. python$$pyvers -m pytest -vv tests/ ; \
-	done ; \
-	for pyvers in $(PYTHON3S); do \
-		PYTHONPATH=. python$$pyvers -m pytest -vv tests/ ; \
-	done ; \
+	dh_auto_test ; \
 	kill -9 $$PID
 endif

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



More information about the Python-modules-commits mailing list