[Python-modules-commits] [flask-login] 01/01: Run tests with pybuild instead of runner script
Carl Suster
arcresu-guest at moszumanska.debian.org
Thu Jan 12 04:27:02 UTC 2017
This is an automated email from the git hooks/post-receive script.
arcresu-guest pushed a commit to branch master
in repository flask-login.
commit d1ea1ab1b15b85b2f8bea131955383aabfce4385
Author: Carl Suster <carl at contraflo.ws>
Date: Thu Jan 12 15:25:19 2017 +1100
Run tests with pybuild instead of runner script
python3-nose-yanc exists now, but we no longer need it since we no
longer use upstream's runner script which enabled it.
---
debian/changelog | 3 +++
debian/rules | 7 ++-----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 4e0139b..5ed4982 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,9 @@
flask-login (0.4.0-2) UNRELEASED; urgency=medium
* Add Forwarded headers to patches.
+ * Drop 0002-allow-choice-of-nosetests-executable-in-run-tests.sh.patch
+ Upstream does not wish to merge this patch and we instead ignore their test
+ runner shell script and use standard pybuild commands in d/rules.
-- Carl Suster <carl at contraflo.ws> Thu, 12 Jan 2017 12:36:53 +1100
diff --git a/debian/rules b/debian/rules
index ea1cde3..08d3001 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,8 @@
export PYBUILD_NAME=flask-login
+export PYBUILD_BEFORE_TEST=cp test_*.py {build_dir}
+export PYBUILD_AFTER_TEST=rm {build_dir}/test_*.py
%:
dh $@ --with python3,sphinxdoc --buildsystem pybuild
@@ -15,10 +17,5 @@ ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
dh_sphinxdoc
endif
-override_dh_auto_test:
- # NB: NOCOLOR can be removed if a B-D on
- # python3-nose-yanc is added (See #850589)
- NOCOLOR=1 NOSETEST=nosetests3 make test
-
override_dh_compress:
dh_compress -X html/
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/flask-login.git
More information about the Python-modules-commits
mailing list