Subject: CVS commit: pkgsrc/devel/py-wrapt
From: Adam Ciarcinski
Date: 2021-10-11 20:02:12
Message id: 20211011180213.08DE3FA97@cvs.NetBSD.org

Log Message:
py-wrapt: updated to 1.13.1

Version 1.13.1

Bugs Fixed

Fix Python version constraint so PyPi classifier for pip requires Python 2.7 or \ 
Python 3.5+.

Version 1.13.0

Bugs Fixed

When a reference to a class method was taken out of a class, and then wrapped in \ 
a function wrapper, and called, the class type was not being passed as the \ 
instance argument, but as the first argument in args, with the instance being \ 
None. The class type should have been passed as the instance argument.
If supplying an adapter function for a signature changing decorator using input \ 
in the form of a function argument specification, name lookup exceptions would \ 
occur where the adaptor function had annotations which referenced non builtin \ 
Python types. Although the issues have been addressed where using input data in \ 
the format usually returned by inspect.getfullargspec() to pass the function \ 
argument specification, you can still have problems when supplying a function \ 
signature as string. In the latter case only Python builtin types can be \ 
referenced in annotations.
When a decorator was applied on top of a data/non-data descriptor in a class \ 
definition, the call to the special method __set_name__() to notify the \ 
descriptor of the variable name was not being propogated. Note that this issue \ 
has been addressed in the FunctionWrapper used by @wrapt.decorator but has not \ 
been applied to the generic ObjectProxy class. If using ObjectProxy directly to \ 
construct a custom wrapper which is applied to a descriptor, you will need to \ 
propogate the __set_name__() call yourself if required.
The issubclass() builtin method would give incorrect results when used with a \ 
class which had a decorator applied to it. Note that this has only been able to \ 
be fixed for Python 3.7+. Also, due to what is arguably a bug \ 
(https://bugs.python.org/issue44847) in the Python standard library, you will \ 
still have problems when the class heirarchy uses a base class which has the \ 
abc.ABCMeta metaclass. In this later case an exception will be raised of \ 
TypeError: issubclass() arg 1 must be a class.

Files:
RevisionActionfile
1.9modifypkgsrc/devel/py-wrapt/Makefile
1.3modifypkgsrc/devel/py-wrapt/PLIST
1.8modifypkgsrc/devel/py-wrapt/distinfo