pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/py-ldap py-ldap: updated to 3.1.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/ed9a0db81c17
branches: trunk
changeset: 324554:ed9a0db81c17
user: adam <adam%pkgsrc.org@localhost>
date: Tue Oct 23 08:58:27 2018 +0000
description:
py-ldap: updated to 3.1.0
Released 3.1.0:
This release brings two minor API changes:
- Long-deprecated functions ldap.open() and ldap.init() are removed
- LDAPObject.compare_s() and compare_ext_s return bool instead of 0 or 1
All changes since 3.0.0:
Lib/
* Remove long deprecated functions ldap.open() and ldap.init()
* LDAPObject.compare_s() and LDAPObject.compare_ext_s() now return a bool
instead of 1 or 0.
* Make iteration over cidict yield same values as keys()
* Fail if pyasn1 is not installed
* Fix parsing of PPolicyControl ASN.1 structure
* Use items() when appropriate in dict iteration
* Add support for tracing LDAP calls. Tracing can now be enabled with
the env var PYTHON_LDAP_TRACE_LEVEL and redirected to a file with
PYTHON_LDAP_TRACE_FILE.
(This is mainly intended for debugging and internal testing; the
configuration or output may change in future versions.)
Modules/
* Fix ref counting bug in LDAPmessage_to_python
Doc/
* Remove warning about unreleased version
* Doc: Replace Mac OS X -> macOS
Tests/
* Add tests and coverage for tracing
* Disable warnings-as-errors for Python 3.4
* Fix assertTrue to assertEqual
* Mark several test values as bytes
Lib/slapdtest/
* Fix error message for missing commands
* Make SlapdObject a context manager
* Disable SASL external when missing SASL support
* Make SlapdObject.root_dn a property
* In SlapdObject, build include directives dynamically
* Move import statements to top level
Code style:
* Add Makefile rules for automatic formatting of C and Python code
* Reformat and indent all C files
* Trim white space throughout the project
Infrastructure:
* Add py3-trace tox environment to Travis CI config
* Add new Pytest cache directory to gitignore
General:
* Update all pypi.python.org URLs to pypi.org
Released 3.0.0:
Notable changes since 2.4.45 (please see detailed logs below):
* Python 3 support and bytes_mode
see: https://python-ldap.readthedocs.io/en/latest/bytes_mode.html
* The module ldap.async is renamed to ldap.asyncsearch
* New dependencies: pyasn1, pyasn1_modules
* Dropped support for Python 2.6 and 3.3
diffstat:
databases/py-ldap/Makefile | 22 +++--------------
databases/py-ldap/PLIST | 46 +++++++++++++++++++++++++++----------
databases/py-ldap/distinfo | 11 ++++----
databases/py-ldap/options.mk | 13 ----------
databases/py-ldap/patches/patch-aa | 19 ---------------
5 files changed, 42 insertions(+), 69 deletions(-)
diffs (176 lines):
diff -r fac76ca3d7cd -r ed9a0db81c17 databases/py-ldap/Makefile
--- a/databases/py-ldap/Makefile Tue Oct 23 08:06:02 2018 +0000
+++ b/databases/py-ldap/Makefile Tue Oct 23 08:58:27 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.81 2017/11/27 10:47:27 adam Exp $
+# $NetBSD: Makefile,v 1.82 2018/10/23 08:58:27 adam Exp $
-DISTNAME= python-ldap-2.5.2
+DISTNAME= python-ldap-3.1.0
PKGNAME= ${DISTNAME:S/python/${PYPKGPREFIX}/}
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/python-ldap/}
@@ -10,24 +10,10 @@
COMMENT= LDAP client API for Python
LICENSE= python-software-foundation
-USE_TOOLS+= pax
-
-PY_LDAP_LIBRARY_DIRS= ${BUILDLINK_PREFIX.openldap-client}/lib
-PY_LDAP_INCLUDE_DIRS= ${BUILDLINK_PREFIX.openldap-client}/include
-PY_LDAP_LIBS= ldap_r lber ssl crypto
-PYTHON_VERSIONS_ACCEPTED= 27
-
-.include "options.mk"
-
-SUBST_CLASSES+= setup
-SUBST_STAGE.setup= pre-configure
-SUBST_FILES.setup= setup.cfg
-SUBST_VARS.setup= PY_LDAP_LIBRARY_DIRS PY_LDAP_INCLUDE_DIRS PY_LDAP_LIBS
-
-REPLACE_PYTHON= Lib/ldap/controls/readentry.py
+DEPENDS+= ${PYPKGPREFIX}-asn1>=0.3.7:../../security/py-asn1
+DEPENDS+= ${PYPKGPREFIX}-asn1-modules>=0.1.5:../../security/py-asn1-modules
.include "../../databases/openldap-client/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
-.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff -r fac76ca3d7cd -r ed9a0db81c17 databases/py-ldap/PLIST
--- a/databases/py-ldap/PLIST Tue Oct 23 08:06:02 2018 +0000
+++ b/databases/py-ldap/PLIST Tue Oct 23 08:58:27 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.19 2017/11/27 10:47:27 adam Exp $
+@comment $NetBSD: PLIST,v 1.20 2018/10/23 08:58:27 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -12,9 +12,18 @@
${PYSITELIB}/ldap/async.py
${PYSITELIB}/ldap/async.pyc
${PYSITELIB}/ldap/async.pyo
+${PYSITELIB}/ldap/asyncsearch.py
+${PYSITELIB}/ldap/asyncsearch.pyc
+${PYSITELIB}/ldap/asyncsearch.pyo
${PYSITELIB}/ldap/cidict.py
${PYSITELIB}/ldap/cidict.pyc
${PYSITELIB}/ldap/cidict.pyo
+${PYSITELIB}/ldap/compat.py
+${PYSITELIB}/ldap/compat.pyc
+${PYSITELIB}/ldap/compat.pyo
+${PYSITELIB}/ldap/constants.py
+${PYSITELIB}/ldap/constants.pyc
+${PYSITELIB}/ldap/constants.pyo
${PYSITELIB}/ldap/controls/__init__.py
${PYSITELIB}/ldap/controls/__init__.pyc
${PYSITELIB}/ldap/controls/__init__.pyo
@@ -27,6 +36,9 @@
${PYSITELIB}/ldap/controls/openldap.py
${PYSITELIB}/ldap/controls/openldap.pyc
${PYSITELIB}/ldap/controls/openldap.pyo
+${PYSITELIB}/ldap/controls/pagedresults.py
+${PYSITELIB}/ldap/controls/pagedresults.pyc
+${PYSITELIB}/ldap/controls/pagedresults.pyo
${PYSITELIB}/ldap/controls/ppolicy.py
${PYSITELIB}/ldap/controls/ppolicy.pyc
${PYSITELIB}/ldap/controls/ppolicy.pyo
@@ -66,15 +78,9 @@
${PYSITELIB}/ldap/functions.py
${PYSITELIB}/ldap/functions.pyc
${PYSITELIB}/ldap/functions.pyo
-${PYSITELIB}/ldap/ldapobject/__init__.py
-${PYSITELIB}/ldap/ldapobject/__init__.pyc
-${PYSITELIB}/ldap/ldapobject/__init__.pyo
-${PYSITELIB}/ldap/ldapobject/reconnect.py
-${PYSITELIB}/ldap/ldapobject/reconnect.pyc
-${PYSITELIB}/ldap/ldapobject/reconnect.pyo
-${PYSITELIB}/ldap/ldapobject/simple.py
-${PYSITELIB}/ldap/ldapobject/simple.pyc
-${PYSITELIB}/ldap/ldapobject/simple.pyo
+${PYSITELIB}/ldap/ldapobject.py
+${PYSITELIB}/ldap/ldapobject.pyc
+${PYSITELIB}/ldap/ldapobject.pyo
${PYSITELIB}/ldap/logger.py
${PYSITELIB}/ldap/logger.pyc
${PYSITELIB}/ldap/logger.pyo
@@ -111,6 +117,20 @@
${PYSITELIB}/ldif.py
${PYSITELIB}/ldif.pyc
${PYSITELIB}/ldif.pyo
-${PYSITELIB}/slapdtest.py
-${PYSITELIB}/slapdtest.pyc
-${PYSITELIB}/slapdtest.pyo
+${PYSITELIB}/slapdtest/__init__.py
+${PYSITELIB}/slapdtest/__init__.pyc
+${PYSITELIB}/slapdtest/__init__.pyo
+${PYSITELIB}/slapdtest/_slapdtest.py
+${PYSITELIB}/slapdtest/_slapdtest.pyc
+${PYSITELIB}/slapdtest/_slapdtest.pyo
+${PYSITELIB}/slapdtest/certs/README
+${PYSITELIB}/slapdtest/certs/ca.conf
+${PYSITELIB}/slapdtest/certs/ca.pem
+${PYSITELIB}/slapdtest/certs/client.conf
+${PYSITELIB}/slapdtest/certs/client.key
+${PYSITELIB}/slapdtest/certs/client.pem
+${PYSITELIB}/slapdtest/certs/gencerts.sh
+${PYSITELIB}/slapdtest/certs/gennssdb.sh
+${PYSITELIB}/slapdtest/certs/server.conf
+${PYSITELIB}/slapdtest/certs/server.key
+${PYSITELIB}/slapdtest/certs/server.pem
diff -r fac76ca3d7cd -r ed9a0db81c17 databases/py-ldap/distinfo
--- a/databases/py-ldap/distinfo Tue Oct 23 08:06:02 2018 +0000
+++ b/databases/py-ldap/distinfo Tue Oct 23 08:58:27 2018 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.41 2017/11/27 10:47:27 adam Exp $
+$NetBSD: distinfo,v 1.42 2018/10/23 08:58:27 adam Exp $
-SHA1 (python-ldap-2.5.2.tar.gz) = 8ce180da961fa7d582a975a43566b17a31f890a8
-RMD160 (python-ldap-2.5.2.tar.gz) = 0e845581f505d8a1b4cd08a1904233a86306fee7
-SHA512 (python-ldap-2.5.2.tar.gz) = d5b1fe047d0f16e6c32e286391d0586e0493cbfa8ad817bd64b917f6aa53699eca84477854088d48ef06e378917a2af9d3669762a0a607d17b1e1c75a371c9ad
-Size (python-ldap-2.5.2.tar.gz) = 297976 bytes
-SHA1 (patch-aa) = 5585e305da91a2dd1ae47cb2bff30b1826000ec5
+SHA1 (python-ldap-3.1.0.tar.gz) = 3735d44524f096e145c91c486c8b1984b6d0122f
+RMD160 (python-ldap-3.1.0.tar.gz) = 0f59a80b72e659458ce703c689ecb0336eb0639c
+SHA512 (python-ldap-3.1.0.tar.gz) = 71948cbae1c9a47f9e68fb8c6d65d91a2992261dd9aa535a0453f5733be1c2a25be1dda3c84abc6bdebab92150c89cc8caa757454331a0303de4fa46788b414a
+Size (python-ldap-3.1.0.tar.gz) = 366019 bytes
diff -r fac76ca3d7cd -r ed9a0db81c17 databases/py-ldap/options.mk
--- a/databases/py-ldap/options.mk Tue Oct 23 08:06:02 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-# $NetBSD: options.mk,v 1.1 2006/05/14 21:09:20 wiz Exp $
-
-PKG_OPTIONS_VAR= PKG_OPTIONS.py-ldap
-PKG_SUPPORTED_OPTIONS= sasl
-
-.include "../../mk/bsd.options.mk"
-
-.if !empty(PKG_OPTIONS:Msasl)
-.include "../../security/cyrus-sasl/buildlink3.mk"
-PY_LDAP_LIBRARY_DIRS+= ${BUILDLINK_PREFIX.cyrus-sasl}/lib
-PY_LDAP_INCLUDE_DIRS+= ${BUILDLINK_PREFIX.cyrus-sasl}/include/sasl
-PY_LDAP_LIBS+= sasl2
-.endif
diff -r fac76ca3d7cd -r ed9a0db81c17 databases/py-ldap/patches/patch-aa
--- a/databases/py-ldap/patches/patch-aa Tue Oct 23 08:06:02 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-$NetBSD: patch-aa,v 1.14 2015/08/31 12:18:51 adam Exp $
-
---- setup.cfg.orig 2015-07-07 13:25:42.000000000 +0000
-+++ setup.cfg
-@@ -1,10 +1,10 @@
- [_ldap]
--library_dirs = /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64
--include_dirs = /usr/include /usr/include/sasl /usr/local/include /usr/local/include/sasl
--defines = HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
-+library_dirs = @PY_LDAP_LIBRARY_DIRS@
-+include_dirs = @PY_LDAP_INCLUDE_DIRS@
-+defines = HAVE_TLS HAVE_LIBLDAP_R
- extra_compile_args =
- extra_objects =
--libs = ldap_r
-+libs = @PY_LDAP_LIBS@
-
- [install]
- compile = 1
Home |
Main Index |
Thread Index |
Old Index