[Python-modules-commits] r30732 - in packages/django-auth-ldap/trunk/debian (rules)
fladi-guest at users.alioth.debian.org
fladi-guest at users.alioth.debian.org
Tue Sep 23 19:12:34 UTC 2014
Date: Tuesday, September 23, 2014 @ 19:12:34
Author: fladi-guest
Revision: 30732
Use upstream test environment.
Modified:
packages/django-auth-ldap/trunk/debian/rules
Modified: packages/django-auth-ldap/trunk/debian/rules
===================================================================
--- packages/django-auth-ldap/trunk/debian/rules 2014-09-23 19:11:51 UTC (rev 30731)
+++ packages/django-auth-ldap/trunk/debian/rules 2014-09-23 19:12:34 UTC (rev 30732)
@@ -6,7 +6,7 @@
export PYBUILD_NAME=django-auth-ldap
%:
- dh $@ --with=python2,python3,sphinxdoc --buildsystem=pybuild
+ dh $@ --with=python2,sphinxdoc --buildsystem=pybuild
override_dh_auto_build:
dh_auto_build
@@ -14,18 +14,10 @@
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
- django-admin startproject testproject
- if [ -d testproject/testproject ]; then \
- cp debian/settings.py testproject/testproject/settings.py; \
- else \
- cp debian/settings.py testproject ; \
- fi
- for python in $(PYVERS) $(PY3VERS); do \
- rm -f testproject/test.db3 ; \
- PYTHONPATH=".:src:testproject" $$python testproject/manage.py syncdb --settings=testproject.settings --noinput ;\
- PYTHONPATH=".:src:testproject" $$python testproject/manage.py test --settings=testproject.settings django_auth_ldap ; \
+ set -e; \
+ for python in $(shell pyversions -r); do \
+ PYTHONPATH=".:test" $$python test/manage.py test django_auth_ldap; \
done
- rm -rf testproject
endif
override_dh_clean:
More information about the Python-modules-commits
mailing list