Tue Mar 17 20:05:53 2020 UTC ()
py-wrapt: updated to 1.12.1

Version 1.12.1

Bugs Fixed

Applying a function wrapper to a static method of a class using the wrap_function_wrapper() function, or wrapper for the same, wasn't being done correctly when the static method was the immediate child of the target object. It was working when the name path had multiple name components. A failure would subsequently occur when the static method was called via an instance of the class, rather than the class.

Version 1.12.0

Features Changed

Provided that you only want to support Python 3.7, when deriving from a base class which has a decorator applied to it, you no longer need to access the true type of the base class using __wrapped__ in the inherited class list of the derived class.
Bugs Fixed

When using the synchronized decorator on instance methods of a class, if the class declared special methods to override the result for when the class instance was tested as a boolean so that it returned False all the time, the synchronized method would fail when called.
When using an adapter function to change the signature of the decorated function, inspect.signature() was returning the wrong signature when an instance method was inspected by accessing the method via the class type.


(adam)
diff -r1.7 -r1.8 pkgsrc/devel/py-wrapt/Makefile
diff -r1.5 -r1.6 pkgsrc/devel/py-wrapt/distinfo

cvs diff -r1.7 -r1.8 pkgsrc/devel/py-wrapt/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/py-wrapt/Makefile 2019/06/18 08:00:34 1.7
+++ pkgsrc/devel/py-wrapt/Makefile 2020/03/17 20:05:53 1.8
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.7 2019/06/18 08:00:34 adam Exp $ 1# $NetBSD: Makefile,v 1.8 2020/03/17 20:05:53 adam Exp $
2 2
3DISTNAME= wrapt-1.11.2 3DISTNAME= wrapt-1.12.1
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= devel python 5CATEGORIES= devel python
6MASTER_SITES= ${MASTER_SITE_PYPI:=w/wrapt/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=w/wrapt/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://github.com/GrahamDumpleton/wrapt 9HOMEPAGE= https://github.com/GrahamDumpleton/wrapt
10COMMENT= Python module for decorators, wrappers and monkey patching 10COMMENT= Python module for decorators, wrappers and monkey patching
11LICENSE= 2-clause-bsd 11LICENSE= 2-clause-bsd
12 12
13.include "../../lang/python/distutils.mk" 13.include "../../lang/python/distutils.mk"
14.include "../../mk/bsd.pkg.mk" 14.include "../../mk/bsd.pkg.mk"

cvs diff -r1.5 -r1.6 pkgsrc/devel/py-wrapt/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/py-wrapt/distinfo 2019/06/18 08:00:34 1.5
+++ pkgsrc/devel/py-wrapt/distinfo 2020/03/17 20:05:53 1.6
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.5 2019/06/18 08:00:34 adam Exp $ 1$NetBSD: distinfo,v 1.6 2020/03/17 20:05:53 adam Exp $
2 2
3SHA1 (wrapt-1.11.2.tar.gz) = 50e81f0e1053b40300addfa0382aa075efaab620 3SHA1 (wrapt-1.12.1.tar.gz) = 6c18d34144c6faba208509b8091d35acc9842081
4RMD160 (wrapt-1.11.2.tar.gz) = 3842fa4627a5115db35261d613402c4667d4085e 4RMD160 (wrapt-1.12.1.tar.gz) = 3a7943cc5072f8e341badac12000e489b7a42fbb
5SHA512 (wrapt-1.11.2.tar.gz) = 4aed5beacf099cb50d1c562fe2193f79af7b7693e2d5d5aacea6594029e9987c9f0bb000dc404be810f1b16de6e8b641dcd631d46f8c9f9b3c94c67859fb5079 5SHA512 (wrapt-1.12.1.tar.gz) = efc38c0adc4fcaa34499a996ea4a337a000a812254ec7ddaca38f0132020dd31afa9fe6bab3e6010df312282ab0ea7bd571b54215d8d27e0b97b270c08cf5a62
6Size (wrapt-1.11.2.tar.gz) = 27308 bytes 6Size (wrapt-1.12.1.tar.gz) = 27488 bytes