[Python-modules-commits] [mockldap] 13/18: Enable Python3 support through additional binary package.
Michael Fladischer
fladi at moszumanska.debian.org
Sat Mar 18 07:30:26 UTC 2017
This is an automated email from the git hooks/post-receive script.
fladi pushed a commit to branch experimental
in repository mockldap.
commit 38b2c5ed7bdf7c073020eba870c0ec54deae9779
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date: Fri Mar 17 23:33:01 2017 +0100
Enable Python3 support through additional binary package.
---
debian/changelog | 1 +
debian/control | 35 +++++++++++++++++++++++++++++++++--
debian/rules | 2 +-
3 files changed, 35 insertions(+), 3 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 48c4f8e..276c795 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,7 @@ mockldap (0.2.7-1~exp1) UNRELEASED; urgency=low
* Replace python-ldap with python-pyldap in Build-Depends.
* Use https:// for copyright-format 1.0 URL.
* Bump Standards-Version to 3.9.8.
+ * Enable Python3 support through additional binary package.
-- Michael Fladischer <fladi at debian.org> Fri, 17 Mar 2017 20:46:41 +0100
diff --git a/debian/control b/debian/control
index 0cbecea..bfac48c 100644
--- a/debian/control
+++ b/debian/control
@@ -13,9 +13,15 @@ Build-Depends: debhelper (>= 9),
python-mock-doc,
python-setuptools,
python-sphinx,
- python-unittest2
+ python-unittest2,
+ python3-all,
+ python3-funcparserlib,
+ python3-mock,
+ python3-pyldap,
+ python3-setuptools
Standards-Version: 3.9.8
X-Python-Version: >= 2.5
+X-Python3-Version: >= 3.3
Homepage: https://bitbucket.org/psagers/mockldap/
Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/mockldap.git
Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/mockldap.git
@@ -24,7 +30,7 @@ Package: python-mockldap
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}
Suggests: python-mockldap-doc
-Description: simple mock implementation of python-ldap
+Description: simple mock implementation of python-ldap (Python2 version)
This project provides a mock replacement for python-ldap. It’s useful for any
project that would like to write unit tests against LDAP code without relying
on a running LDAP server.
@@ -40,6 +46,31 @@ Description: simple mock implementation of python-ldap
then let LDAPObject generate real return values. This will only work for simple
LDAP operations–this obviously isn’t a complete Python LDAP server
implementation–but those simple operations tend to cover a lot of cases.
+ .
+ This package contains the Python 2 version of the library.
+
+Package: python3-mockldap
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Suggests: python-mockldap-doc
+Description: simple mock implementation of python-ldap (Python3 version)
+ This project provides a mock replacement for python-ldap. It’s useful for any
+ project that would like to write unit tests against LDAP code without relying
+ on a running LDAP server.
+ .
+ The goal of mockldap is to provide a mock instance of LDAPObject in response to
+ any call to ldap.initialize. In the general case, you would register return
+ values for all LDAPObject calls that you expect the code under test to make.
+ Your assertions would then verify that the tested code behaved correctly given
+ this set of return values from the LDAP APIs.
+ .
+ As a convenience, the mock LDAPObject isn’t just a dumb mock object. The
+ typical way to use mockldap is to provide some static directory content and
+ then let LDAPObject generate real return values. This will only work for simple
+ LDAP operations–this obviously isn’t a complete Python LDAP server
+ implementation–but those simple operations tend to cover a lot of cases.
+ .
+ This package contains the Python 3 version of the library.
Package: python-mockldap-doc
Section: doc
diff --git a/debian/rules b/debian/rules
index 297ca3e..fe91cd9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,7 +6,7 @@
export PYBUILD_NAME=mockldap
%:
- dh $@ --with python2,sphinxdoc --buildsystem=pybuild
+ dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
override_dh_auto_build:
dh_auto_build
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/mockldap.git
More information about the Python-modules-commits
mailing list