Skip to content

Release 3.4.0 #431

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,48 @@
Released 3.4.0 2021-11-26

This release requires Python 3.6 or above,
and is tested with Python 3.6 to 3.10.
Python 2 is no longer supported.

New code in the python-ldap project is available under the MIT licence
(available in ``LICENCE.MIT`` in the source). Several contributors have agreed
to apply this licence their previous contributions as well.
See the ``README`` for details.

The following undocumented functions are deprecated and scheduled for removal:
- ``ldap.cidict.strlist_intersection``
- ``ldap.cidict.strlist_minus``
- ``ldap.cidict.strlist_union``

Changes:
* On MacOS, remove option to make LDAP connections from a file descriptor
when built with the system libldap (which lacks the underlying function,
``ldap_init_fd``)
* Attribute values of the post read control are now ``bytes``
instead of ISO8859-1 decoded ``str``
* ``LDAPUrl`` now treats urlscheme as case-insensitive
* Several OpenLDAP options are now supported:
* ``OPT_X_TLS_REQUIRE_SAN``
* ``OPT_X_SASL_SSF_EXTERNAL``
* ``OPT_X_TLS_PEERCERT``

Fixes:
* The ``copy()`` method of ``cidict`` was added back. It was unintentionally
removed in 3.3.0
* Fixed getting/setting ``SASL`` options on big endian platforms
* Unknown LDAP result code are now converted to ``LDAPexception``,
rather than raising a ``SystemError``.

slapdtest:
* Show stderr of slapd -Ttest
* ``SlapdObject`` uses directory-based configuration of ``slapd``
* ``SlapdObject`` startup is now faster

Infrastructure:
* CI now runs on GitHub Actions rather than Travis CI.


----------------------------------------------------------------
Released 3.3.0 2020-06-18

Highlights:
Expand Down
2 changes: 1 addition & 1 deletion Doc/installing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Build prerequisites
The following software packages are required to be installed
on the local system when building python-ldap:

- `Python`_ version 2.7, or 3.4 or later including its development files
- `Python`_ including its development files
- C compiler corresponding to your Python version (on Linux, it is usually ``gcc``)
- `OpenLDAP`_ client libs version 2.4.11 or later;
it is not possible and not supported to build with prior versions.
Expand Down
6 changes: 3 additions & 3 deletions Lib/ldap/cidict.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def strlist_minus(a,b):
a,b are supposed to be lists of case-insensitive strings.
"""
warnings.warn(
"strlist functions are deprecated and will be removed in 3.4",
"strlist functions are deprecated and will be removed in 3.5",
category=DeprecationWarning,
stacklevel=2,
)
Expand All @@ -105,7 +105,7 @@ def strlist_intersection(a,b):
Return intersection of two lists of case-insensitive strings a,b.
"""
warnings.warn(
"strlist functions are deprecated and will be removed in 3.4",
"strlist functions are deprecated and will be removed in 3.5",
category=DeprecationWarning,
stacklevel=2,
)
Expand All @@ -125,7 +125,7 @@ def strlist_union(a,b):
Return union of two lists of case-insensitive strings a,b.
"""
warnings.warn(
"strlist functions are deprecated and will be removed in 3.4",
"strlist functions are deprecated and will be removed in 3.5",
category=DeprecationWarning,
stacklevel=2,
)
Expand Down
2 changes: 1 addition & 1 deletion Lib/ldap/pkginfo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
meta attributes for packaging which does not import any dependencies
"""
__version__ = '3.3.0'
__version__ = '3.4.0'
__author__ = 'python-ldap project'
__license__ = 'Python style'
2 changes: 1 addition & 1 deletion Lib/ldapurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
See https://www.python-ldap.org/ for details.
"""

__version__ = '3.3.0'
__version__ = '3.4.0'

__all__ = [
# constants
Expand Down
2 changes: 1 addition & 1 deletion Lib/ldif.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

See https://www.python-ldap.org/ for details.
"""
__version__ = '3.3.0'
__version__ = '3.4.0'

__all__ = [
# constants
Expand Down
2 changes: 1 addition & 1 deletion Lib/slapdtest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
See https://www.python-ldap.org/ for details.
"""

__version__ = '3.3.0'
__version__ = '3.4.0'

from slapdtest._slapdtest import SlapdObject, SlapdTestCase, SysLogHandler
from slapdtest._slapdtest import requires_ldapi, requires_sasl, requires_tls
Expand Down