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: Mon Feb 27 08:33:00 UTC 2023
Modified Files:
pkgsrc/devel/py-wrapt: Makefile distinfo
Log Message:
py-wrapt: updated to 1.15.0
Version 1.15.0
Bugs Fixed
When the C extension for wrapt was being used, and a property was used on an object proxy wrapping another object to intercept access to an attribute of the same name on the wrapped object, if the
function implementing the property raised an exception, then the exception was ignored and not propagated back to the caller. What happened instead was that the original value of the attribute from
the wrapped object was returned, thus silently suppressing that an exception had occurred in the wrapper. This behaviour was not happening when the pure Python version of wrapt was being used, with
it raising the exception. The pure Python and C extension implementations thus did not behave the same.
Note that in the specific case that the exception raised is AttributeError it still wouldn't be raised. This is the case for both Python and C extension implementations. If a wrapper for an attribute
internally raises an AttributeError for some reason, the wrapper should if necessary catch the exception and deal with it, or propagate it as a different exception type if it is important that an
exception still be passed back.
Address issue where the post import hook mechanism of wrapt wasn't transparent and left the __loader__ and __spec__.loader attributes of a module as the wrapt import hook loader and not the original
loader. That the original loader wasn't preserved could interfere with code which needed access to the original loader.
Address issues where a thread deadlock could occur within the wrapt module import handler, when code executed from a post import hook created a new thread and code executed in the context of the new
thread itself tried to register a post import hook, or imported a new module.
When using CallableObjectProxy as a wrapper for a type or function and calling the wrapped object, it was not possible to pass a keyword argument named self. This only occurred when using the pure
Python version of wrapt and did not occur when using the C extension based implementation.
When using PartialCallableObjectProxy as a wrapper for a type or function, when constructing the partial object and when calling the partial object, it was not possible to pass a keyword argument
named self. This only occurred when using the pure Python version of wrapt and did not occur when using the C extension based implementation.
When using FunctionWrapper as a wrapper for a type or function and calling the wrapped object, it was not possible to pass a keyword argument named self. Because FunctionWrapper is also used by
decorators, this also affected decorators on functions and class types. A similar issue also arose when these were applied to class and instance methods where binding occurred when the method was
accessed. In that case it was in BoundFunctionWrapper that the problem could arise. These all only occurred when using the pure Python version of wrapt and did not occur when using the C extension
based implementation.
When using WeakFunctionProxy as a wrapper for a function, when calling the function via the proxy object, it was not possible to pass a keyword argument named self.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/devel/py-wrapt/Makefile
cvs rdiff -u -r1.13 -r1.14 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.14 pkgsrc/devel/py-wrapt/Makefile:1.15
--- pkgsrc/devel/py-wrapt/Makefile:1.14 Mon May 2 07:49:32 2022
+++ pkgsrc/devel/py-wrapt/Makefile Mon Feb 27 08:33:00 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.14 2022/05/02 07:49:32 adam Exp $
+# $NetBSD: Makefile,v 1.15 2023/02/27 08:33:00 adam Exp $
-DISTNAME= wrapt-1.14.1
+DISTNAME= wrapt-1.15.0
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.13 pkgsrc/devel/py-wrapt/distinfo:1.14
--- pkgsrc/devel/py-wrapt/distinfo:1.13 Mon May 2 07:49:32 2022
+++ pkgsrc/devel/py-wrapt/distinfo Mon Feb 27 08:33:00 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.13 2022/05/02 07:49:32 adam Exp $
+$NetBSD: distinfo,v 1.14 2023/02/27 08:33:00 adam Exp $
-BLAKE2s (wrapt-1.14.1.tar.gz) = 92d424db754475ebd9cdcd895de44fa98ab92024a1190af8c4e21a34c559669c
-SHA512 (wrapt-1.14.1.tar.gz) = 69986796303ad78f532b4f671829226c7bb43d97a494a111dcf397b68b447f64cee16d14d3f8c9eb84bbb9c1ac8709b6f33f7d78389b2968493e95ced63779ac
-Size (wrapt-1.14.1.tar.gz) = 50890 bytes
+BLAKE2s (wrapt-1.15.0.tar.gz) = c3489a2ca8bf3f7aff36e975be39a5ae88446ebd2f1ba41b6672398061cc8061
+SHA512 (wrapt-1.15.0.tar.gz) = f152b3b087fbac336b93c11bd93cedbbae1ec5127c6e0fc9533272e1ac65ba3b387d76ef0ac3ea2cecc49d1a551d1a81d6801a4da697624ea3867a329d0143db
+Size (wrapt-1.15.0.tar.gz) = 53519 bytes
Home |
Main Index |
Thread Index |
Old Index