[Python-modules-commits] [django-auth-ldap] 18/20: Simplify autho-tests so they also test Python3.
Michael Fladischer
fladi at moszumanska.debian.org
Sun Mar 19 08:08:22 UTC 2017
This is an automated email from the git hooks/post-receive script.
fladi pushed a commit to branch master
in repository django-auth-ldap.
commit d583122b932e69e3a1a31192625dfda217210571
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date: Sun Mar 19 08:58:02 2017 +0100
Simplify autho-tests so they also test Python3.
---
debian/changelog | 1 +
debian/rules | 9 +++------
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index b03f73d..f1ade9f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -20,6 +20,7 @@ django-auth-ldap (1.2.10+dfsg-1~exp1) UNRELEASED; urgency=low
* Remove version constraint from python-django in Depends, no longer
necessary.
* Add Python3 support through a separate binary package.
+ * Simplify autho-tests so they also test Python3.
-- Michael Fladischer <fladi at debian.org> Fri, 17 Mar 2017 20:25:01 +0100
diff --git a/debian/rules b/debian/rules
index 341ebdc..7ab249c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,8 @@
#export DH_VERBOSE=1
export PYBUILD_NAME=django-auth-ldap
+export PYBUILD_BEFORE_TEST=cp -r {dir}/test {build_dir}
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/test
%:
dh $@ --with=python2,python3,sphinxdoc --buildsystem=pybuild
@@ -13,12 +15,7 @@ override_dh_auto_build:
PYTHONPATH=. sphinx-build -b html -d docs/.build/.doctrees -N docs/source docs/.build/html
override_dh_auto_test:
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
- set -e; \
- for python in $(shell pyversions -r); do \
- PYTHONPATH=".:test" $$python test/manage.py test django_auth_ldap; \
- done
-endif
+ dh_auto_test -- --system=custom --test-args="PYTHONPATH=. {interpreter} {dir}/test/manage.py test django_auth_ldap"
override_dh_clean:
rm -rf docs/.build/
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/django-auth-ldap.git
More information about the Python-modules-commits
mailing list