pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-wrapt
Module Name: pkgsrc
Committed By: adam
Date: Tue Nov 11 08:39:47 UTC 2025
Modified Files:
pkgsrc/devel/py-wrapt: Makefile distinfo
Log Message:
py-wrapt: updated to 2.0.1
2.0.1
Bugs Fixed
The wrapt.lazy_import() function wasn’t included in the __all__ attribute of the wrapt module, meaning that it wasn’t accessible when using from wrapt import * and type checkers such as mypy or
pylance may not see it as part of the public API.
When using wrapt.lazy_import() to lazily import a function of a module, the resulting proxy object wasn’t marked as callable until something triggered the import of the module via the proxy. This
meant a callable() check on the proxy would return False until the module was actually imported. Further, calling the proxy before the module was imported would raise TypeError: 'LazyObjectProxy'
object is not callable rather than importing the module and calling the function as expected. In order to address this issue, an additional keyword argument interface has been added to
wrapt.lazy_import() which can be used to specify the expected interface type of the wrapped object. This will default to Callable when an attribute name is supplied, and to ModuleType when no
attribute name is supplied. If using wrapt.lazy_import() and supplying an attribute argument, and you expect the wrapped object to be something other than a callable, you should now also supply
interface=... with the ap
propriate type from collections.abc to ensure the proxy behaves correctly prior to the module being imported. This should only be necessary where the wrapped object has special dunder methods on its
type which need to exist on the proxy prior to the module being imported.
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 pkgsrc/devel/py-wrapt/Makefile
cvs rdiff -u -r1.20 -r1.21 pkgsrc/devel/py-wrapt/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/py-wrapt/Makefile
diff -u pkgsrc/devel/py-wrapt/Makefile:1.26 pkgsrc/devel/py-wrapt/Makefile:1.27
--- pkgsrc/devel/py-wrapt/Makefile:1.26 Thu Oct 23 09:13:08 2025
+++ pkgsrc/devel/py-wrapt/Makefile Tue Nov 11 08:39:47 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.26 2025/10/23 09:13:08 adam Exp $
+# $NetBSD: Makefile,v 1.27 2025/11/11 08:39:47 adam Exp $
-DISTNAME= wrapt-2.0.0
+DISTNAME= wrapt-2.0.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=w/wrapt/}
Index: pkgsrc/devel/py-wrapt/distinfo
diff -u pkgsrc/devel/py-wrapt/distinfo:1.20 pkgsrc/devel/py-wrapt/distinfo:1.21
--- pkgsrc/devel/py-wrapt/distinfo:1.20 Thu Oct 23 09:13:08 2025
+++ pkgsrc/devel/py-wrapt/distinfo Tue Nov 11 08:39:47 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.20 2025/10/23 09:13:08 adam Exp $
+$NetBSD: distinfo,v 1.21 2025/11/11 08:39:47 adam Exp $
-BLAKE2s (wrapt-2.0.0.tar.gz) = 8dd8893d2eae5d65b0afa4966af0e8c254cc606324a1372a4c3baea2faaade43
-SHA512 (wrapt-2.0.0.tar.gz) = 61f3aae61b9a1fd6cc2227dc08b6738a21413f5b56baf8e0c77942975165704f538a94e10bb85a656c7519d0c9e25d6371026b1541ab134579ff7bb50e5f16bf
-Size (wrapt-2.0.0.tar.gz) = 81722 bytes
+BLAKE2s (wrapt-2.0.1.tar.gz) = c3143dbbbac6324991ab6fcabf7d0dd9b0cbd9d325dddf86ab96a2d4d023b156
+SHA512 (wrapt-2.0.1.tar.gz) = e134ac2ef8db889fb14596d543faa2be076bc383cb0f16734ca08e8c80f5570b6bd65cc9475d99a707290fc9ead07debbe9714120b404f9b244b700e79b19f88
+Size (wrapt-2.0.1.tar.gz) = 82040 bytes
Home |
Main Index |
Thread Index |
Old Index