summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/README.source2
-rw-r--r--debian/changelog171
-rw-r--r--debian/control23
-rw-r--r--debian/copyright31
-rw-r--r--debian/gbp.conf2
-rw-r--r--debian/patches/pyasn1-compat.patch27
-rw-r--r--debian/patches/series1
-rwxr-xr-xdebian/rules6
-rw-r--r--debian/source/format1
-rw-r--r--debian/upstream/metadata4
-rw-r--r--debian/watch3
11 files changed, 271 insertions, 0 deletions
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..a77de96
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,2 @@
+The upstream source package must be uploaded from PyPI, not github, as the
+version available on github includes many non-free RFCs.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..afe6274
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,171 @@
+python-ldap3 (2.7-3) UNRELEASED; urgency=medium
+
+ * d/control: Update Maintainer field with new Debian Python Team
+ contact address.
+ * d/control: Update Vcs-* fields with new Debian Python Team Salsa
+ layout.
+
+ -- Ondřej Nový <onovy@debian.org> Thu, 24 Sep 2020 08:53:19 +0200
+
+python-ldap3 (2.7-2) unstable; urgency=medium
+
+ * Fix FTBFS due to a missing exception (Closes: #958657).
+
+ -- Andrej Shadura <andrewsh@debian.org> Fri, 24 Apr 2020 07:38:59 +0200
+
+python-ldap3 (2.7-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Bump debhelper from old 9 to 12.
+ * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository,
+ Repository-Browse.
+
+ -- Andrej Shadura <andrewsh@debian.org> Wed, 22 Apr 2020 22:45:27 +0200
+
+python-ldap3 (2.4.1-2) unstable; urgency=medium
+
+ * Team upload.
+
+ [ Ondřej Nový ]
+ * d/control: Remove ancient X-Python-Version field
+ * d/control: Remove ancient X-Python3-Version field
+ * Use debhelper-compat instead of debian/compat.
+
+ [ Andrey Rahmatullin ]
+ * Drop Python 2 support (Closes: #937881).
+
+ -- Andrey Rahmatullin <wrar@debian.org> Thu, 05 Sep 2019 11:31:49 +0500
+
+python-ldap3 (2.4.1-1) unstable; urgency=medium
+
+ [ Ondřej Nový ]
+ * d/control: Set Vcs-* to salsa.debian.org
+ * d/copyright: Use https protocol in Format field
+ * d/watch: Use https protocol
+
+ [ Felix Geyer ]
+ * New upstream version.
+
+ -- Felix Geyer <felix.geyer@credativ.de> Tue, 27 Feb 2018 09:54:23 +0100
+
+python-ldap3 (2.2.4-1) unstable; urgency=medium
+
+ * New upstream version.
+
+ -- Brian May <bam@debian.org> Thu, 06 Jul 2017 17:44:31 +1000
+
+python-ldap3 (2.2.2-1) experimental; urgency=medium
+
+ * New upstream version. Closes: #857949.
+
+ -- Brian May <bam@debian.org> Sat, 18 Mar 2017 16:26:42 +1100
+
+python-ldap3 (1.2.2-1) unstable; urgency=medium
+
+ * New upstream version.
+
+ -- Brian May <bam@debian.org> Wed, 06 Apr 2016 13:29:21 +1000
+
+python-ldap3 (1.0.3-1) unstable; urgency=medium
+
+ * New upstream version.
+
+ -- Brian May <bam@debian.org> Sun, 03 Jan 2016 14:56:09 +1100
+
+python-ldap3 (1.0.2-1) unstable; urgency=medium
+
+ * New upstream version.
+
+ -- Brian May <bam@debian.org> Tue, 15 Dec 2015 17:07:38 +1100
+
+python-ldap3 (0.9.9.3-1) unstable; urgency=medium
+
+ * New upstream version.
+
+ -- Brian May <bam@debian.org> Thu, 19 Nov 2015 10:55:09 +1100
+
+python-ldap3 (0.9.9.1-1) unstable; urgency=medium
+
+ * New upstream version.
+ * Add python-pyasn1 and python3-pyasn1 to build depends.
+ * Swap maintainer and uploaders. Maintainer is now DPMT.
+
+ -- Brian May <bam@debian.org> Wed, 14 Oct 2015 09:40:42 +1100
+
+python-ldap3 (0.9.8.8-1) unstable; urgency=medium
+
+ * New upstream version.
+
+ -- Brian May <bam@debian.org> Mon, 24 Aug 2015 18:39:58 +1000
+
+python-ldap3 (0.9.8.4-2) unstable; urgency=medium
+
+ * Fix description for python-ldap3 package. Closes: #790307.
+
+ -- Brian May <bam@debian.org> Tue, 21 Jul 2015 16:36:39 +1000
+
+python-ldap3 (0.9.8.4-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Brian May <bam@debian.org> Fri, 01 May 2015 11:06:12 +1000
+
+python-ldap3 (0.9.8.2-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Brian May <bam@debian.org> Thu, 30 Apr 2015 14:33:03 +1000
+
+python-ldap3 (0.9.7.4-1) unstable; urgency=low
+
+ * New upstream release.
+ * Upstream package name renamed from python3-ldap to ldap3.
+
+ -- Brian May <bam@debian.org> Thu, 19 Feb 2015 12:01:32 +1100
+
+python-ldap3 (0.9.6.2-1) unstable; urgency=low
+
+ * New upstream version.
+ * Breaks current versions of python-tldap due to change in escaping
+ requirements. See https://code.vpac.org/gerrit/#/c/1342/.
+ * This version supports IPv6, but won't automatically fall back to IPv4 on
+ errror. See
+ https://bitbucket.org/python3ldap/python3-ldap/issue/42/doesnt-fall-back-to-ipv4-connection-if
+ * Update standards version to 3.9.6.
+
+ -- Brian May <bam@debian.org> Tue, 18 Nov 2014 11:23:45 +1100
+
+python-ldap3 (0.9.4.2-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Brian May <bam@debian.org> Wed, 09 Jul 2014 11:21:59 +1000
+
+python-ldap3 (0.9.3.5-1) unstable; urgency=low
+
+ * New upstream version.
+ * Fix error closing connection when it is already closed.
+
+ -- Brian May <bam@debian.org> Thu, 19 Jun 2014 08:59:16 +1000
+
+python-ldap3 (0.9.3.4-1) unstable; urgency=low
+
+ * New upstream version.
+ * Exception can now be imported from ldap3 package
+ * Escape_bytes return '' for empty string instead of None (thanks Brian)
+ * Added exception history to restartable connection (except than for
+ infinite retries)
+ * Fixed start_tls retrying in restartable connection (thanks Brian)
+ * New exception LDAPMaximumRetriesError for signaling when the
+ SyncRestartable
+ * Strategy has reached the maximum number of retries while performing an
+ operation
+ * Inverted deleteoldrdn value in LDIF output (thanks Joseph)
+
+ -- Brian May <bam@debian.org> Tue, 17 Jun 2014 09:38:11 +1000
+
+python-ldap3 (0.9.3.3-1) unstable; urgency=low
+
+ * Initial release. Closes: #750396.
+
+ -- Brian May <bam@debian.org> Tue, 03 Jun 2014 16:10:41 +1000
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..8623a39
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,23 @@
+Source: python-ldap3
+Maintainer: Debian Python Team <team+python@tracker.debian.org>
+Uploaders: Brian May <bam@debian.org>
+Section: python
+Priority: optional
+Build-Depends: debhelper-compat (= 12), dh-python,
+ python3-all, python3-setuptools, python3-pyasn1,
+Standards-Version: 4.0.0
+Vcs-Browser: https://salsa.debian.org/python-team/packages/python-ldap3
+Vcs-Git: https://salsa.debian.org/python-team/packages/python-ldap3.git
+Homepage: https://github.com/cannatag/ldap3
+
+Package: python3-ldap3
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+Breaks: python3-tldap (<< 0.3.8~)
+Description: Pure Python LDAP client library
+ A pure Python 3 LDAP version 3 strictly conforming to RFC4511 released under
+ the LGPL v3 open source license. RFC4511 is the current LDAP specification
+ (June 2006) from IETF and obsoletes the previous LDAP RFCs 2251, 2830, 3771
+ (December 1997)
+ .
+ This package contains the Python 3.x version of the library.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..3450b2d
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: python3-ldap
+Upstream-Contact: Giovanni Cannata <python3ldap@gmail.com>
+Source: http://pypi.debian.net/ldap3/
+
+Files: *
+Copyright: 2013, Giovanni Cannata
+License: LGPL-3+
+
+Files: debian/*
+Copyright: 2014, Brian May <bam@debian.org>
+License: LGPL-3+
+
+License: LGPL-3+
+ python3-ldap is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ python3-ldap is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public License
+ along with python3-ldap in the COPYING and COPYING.LESSER files.
+ If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 3 can be found in the file
+ `/usr/share/common-licenses/LGPL-3'.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..3879982
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,2 @@
+[DEFAULT]
+debian-branch=debian/master
diff --git a/debian/patches/pyasn1-compat.patch b/debian/patches/pyasn1-compat.patch
new file mode 100644
index 0000000..9b38abd
--- /dev/null
+++ b/debian/patches/pyasn1-compat.patch
@@ -0,0 +1,27 @@
+From: Andrej Shadura <andrewsh@debian.org>
+Date: Fri, 24 Apr 2020 07:38:00 +0200
+Subject: Try to import an old exception name
+
+pyasn1 0.4.6 started throwing PyAsn1UnicodeDecodeError instead of a generic PyAsn1Error
+
+This patch needs to be dropped when pyasn1 is updated in Debian.
+---
+ ldap3/operation/search.py | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/ldap3/operation/search.py b/ldap3/operation/search.py
+index b78d86d..d7cb50d 100644
+--- a/ldap3/operation/search.py
++++ b/ldap3/operation/search.py
+@@ -38,7 +38,10 @@ from ..operation.bind import referrals_to_list
+ from ..protocol.convert import ava_to_dict, attributes_to_list, search_refs_to_list, validate_assertion_value, prepare_filter_for_sending, search_refs_to_list_fast
+ from ..protocol.formatters.standard import format_attribute_values
+ from ..utils.conv import to_unicode, to_raw
+-from pyasn1.error import PyAsn1UnicodeDecodeError
++try:
++ from pyasn1.error import PyAsn1UnicodeDecodeError
++except ImportError:
++ from pyasn1.error import PyAsn1Error as PyAsn1UnicodeDecodeError
+
+ ROOT = 0
+ AND = 1
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..5fd49ff
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+pyasn1-compat.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..f3fd777
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,6 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=ldap3
+
+%:
+ dh $@ --with python3 --buildsystem=pybuild
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..c276642
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,4 @@
+Bug-Database: https://github.com/cannatag/ldap3/issues
+Bug-Submit: https://github.com/cannatag/ldap3/issues/new
+Repository: https://github.com/cannatag/ldap3.git
+Repository-Browse: https://github.com/cannatag/ldap3
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..1f48675
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/ldap3/ldap3-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))