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:           Fri Oct 30 05:41:30 UTC 2026

Modified Files:
        pkgsrc/devel/py-wrapt: Makefile distinfo

Log Message:
py-wrapt: updated to 2.5.2

2.5.2

Bugs Fixed

The special methods added to the class generated for an wrapt.AutoObjectProxy, and adjusted when __wrapped__ was reassigned, were determined by inspecting the wrapped object itself, rather than the 
type of the wrapped object. As special methods are only ever looked up on the type of an object, this gave the wrong result in several cases. When the wrapped object was a class, the special methods 
it defined for its instances were added to the proxy class, so a proxy for a class defining __set_name__() raised TypeError when assigned to an attribute in a class body, a proxy for a class defining 
__get__() was bound as a descriptor on attribute access, and a proxy for a class defining __await__() or __iter__() was reported as awaitable or iterable by inspect.isawaitable() and collections.abc 
checks, even though the class itself was not. Special methods provided by the metaclass of a wrapped class, such as __iter__(), were not added to the proxy class. When the wrapped object was an 
instance, instance attributes shadowing the dunder names were treated as special methods of the wrapped object, and special methods which a __dir__() method of the wrapped object did not report were 
missed. The special methods are now always determined from the type of the wrapped object, so a proxy behaves the same as the object it wraps. This also covers a wrapt.LazyObjectProxy whose factory 
returns an object, as resolving the wrapped object reassigns __wrapped__. With thanks to ybai08 for pull request 361 which identified the issue.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 pkgsrc/devel/py-wrapt/Makefile
cvs rdiff -u -r1.32 -r1.33 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.38 pkgsrc/devel/py-wrapt/Makefile:1.39
--- pkgsrc/devel/py-wrapt/Makefile:1.38 Mon Oct 19 12:16:36 2026
+++ pkgsrc/devel/py-wrapt/Makefile      Fri Oct 30 05:41:29 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.38 2026/10/19 12:16:36 adam Exp $
+# $NetBSD: Makefile,v 1.39 2026/10/30 05:41:29 adam Exp $
 
-DISTNAME=      wrapt-2.5.1
+DISTNAME=      wrapt-2.5.2
 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.32 pkgsrc/devel/py-wrapt/distinfo:1.33
--- pkgsrc/devel/py-wrapt/distinfo:1.32 Mon Oct 19 12:16:36 2026
+++ pkgsrc/devel/py-wrapt/distinfo      Fri Oct 30 05:41:29 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.32 2026/10/19 12:16:36 adam Exp $
+$NetBSD: distinfo,v 1.33 2026/10/30 05:41:29 adam Exp $
 
-BLAKE2s (wrapt-2.5.1.tar.gz) = ddfcf6210c6c683c7fc9fa35643f5b735ce8f56342749e029e9ff8044e42774a
-SHA512 (wrapt-2.5.1.tar.gz) = 16fe755feda833fda4263e5984d5229656970e02ddbc6458d3e2034d57d94102c4ad8df9569c4d4386897ea06a004374c82dc3c380a2690ff876b4098b38cf00
-Size (wrapt-2.5.1.tar.gz) = 184455 bytes
+BLAKE2s (wrapt-2.5.2.tar.gz) = c5f77996b0bd033434e2e9f80884bb30f2a6c9244a942bc1c6370a0ecc27cd12
+SHA512 (wrapt-2.5.2.tar.gz) = 66d6fd65c08cbd39ebbd8d53593c5fcf13dc50b16fda2332d6faa0cfc029a23e7310593b321980be74b1a5036b6769695be2c8e5f81799292d823a160c4edb20
+Size (wrapt-2.5.2.tar.gz) = 186066 bytes



Home | Main Index | Thread Index | Old Index