[Python-modules-commits] r30437 - in packages/django-auth-ldap/trunk/debian (control rules)

fladi-guest at users.alioth.debian.org fladi-guest at users.alioth.debian.org
Mon Sep 1 06:32:54 UTC 2014


    Date: Monday, September 1, 2014 @ 06:32:53
  Author: fladi-guest
Revision: 30437

Add Python3 support.

Modified:
  packages/django-auth-ldap/trunk/debian/control
  packages/django-auth-ldap/trunk/debian/rules

Modified: packages/django-auth-ldap/trunk/debian/control
===================================================================
--- packages/django-auth-ldap/trunk/debian/control	2014-09-01 05:58:26 UTC (rev 30436)
+++ packages/django-auth-ldap/trunk/debian/control	2014-09-01 06:32:53 UTC (rev 30437)
@@ -5,15 +5,21 @@
 Uploaders: Michael Fladischer <FladischerMichael at fladi.at>
 Build-Depends: debhelper (>= 8.1.0~),
                python-all,
-               python-django (>= 1.3),
-               python-django-doc (>= 1.3),
+               python-django (>= 1.7~),
+               python-django-doc (>= 1.7~),
                python-doc,
                python-ldap,
                python-mockldap,
                python-setuptools,
-               python-sphinx (>= 1.0.7+dfsg)
+               python-sphinx (>= 1.0.7+dfsg),
+               python3-all,
+               python3-django (>= 1.7~),
+               python3-ldap3,
+               python3-mockldap,
+               python3-setuptools
 Standards-Version: 3.9.5
 X-Python-Version: >= 2.5
+X-Python3-Version: >= 3.3
 Homepage: http://pypi.python.org/pypi/django-auth-ldap/
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/django-auth-ldap/trunk/
 Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/django-auth-ldap/trunk/
@@ -31,6 +37,21 @@
  name template, but there are many rich configuration options for
  working with users, groups, and permissions.
 
+Package: python3-django-auth-ldap
+Architecture: all
+Depends: python3-django (>= 1.3),
+         python3-ldap3,
+         ${misc:Depends},
+         ${python3:Depends}
+Suggests: python-django-auth-ldap-doc
+Description: Django LDAP authentication backend (Python3 version)
+ Django authentication backend that authenticates against an LDAP
+ service. Configuration can be as simple as a single distinguished
+ name template, but there are many rich configuration options for
+ working with users, groups, and permissions.
+ .
+ This package contains the Python 3 version of the library.
+
 Package: python-django-auth-ldap-doc
 Section: doc
 Architecture: all

Modified: packages/django-auth-ldap/trunk/debian/rules
===================================================================
--- packages/django-auth-ldap/trunk/debian/rules	2014-09-01 05:58:26 UTC (rev 30436)
+++ packages/django-auth-ldap/trunk/debian/rules	2014-09-01 06:32:53 UTC (rev 30437)
@@ -1,14 +1,40 @@
 #!/usr/bin/make -f
 
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+PYVERS :=  $(shell pyversions -r)
+PY3VERS := $(shell py3versions -r)
+
 %:
-	dh $@ --with=python2,sphinxdoc
+	dh $@ --with=python2,python3,sphinxdoc
 
-.PHONY: override_dh_auto_build
 override_dh_auto_build:
+	set -e; \
+	for py in $(PYVERS) $(PY3VERS); do \
+		$$py -B setup.py build; \
+	done
 	PYTHONPATH=. sphinx-build -b html -d docs/.build/.doctrees -N docs/source docs/.build/html
-	dh_auto_build
 
-.PHONY: override_dh_auto_test
+override_dh_auto_clean:
+	set -e; \
+	for py in $(PYVERS) $(PY3VERS); do \
+		$$py -B setup.py clean; \
+		rm -rf build; \
+	done
+
+override_dh_auto_install:
+	set -e; \
+	for py in $(PYVERS); do \
+		$$py -B setup.py install --skip-build --root debian/python-django-auth-ldap \
+		                      --install-layout deb; \
+	done
+	set -e; \
+	for py in $(PY3VERS); do \
+		$$py -B setup.py install --skip-build --root debian/python3-django-auth-ldap \
+		                      --install-layout deb; \
+	done
+
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	django-admin startproject testproject
@@ -17,7 +43,7 @@
 	else \
 		cp debian/settings.py testproject ; \
 	fi
-	for python in $(shell pyversions -r); do \
+	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 ; \
@@ -25,7 +51,6 @@
 	rm -rf testproject
 endif
 
-.PHONY: override_dh_clean
 override_dh_clean:
 	rm -rf docs/.build/
 	dh_clean




More information about the Python-modules-commits mailing list