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 Oct 11 18:02:12 UTC 2021

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

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.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/devel/py-wrapt/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/py-wrapt/PLIST
cvs rdiff -u -r1.7 -r1.8 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.8 pkgsrc/devel/py-wrapt/Makefile:1.9
--- pkgsrc/devel/py-wrapt/Makefile:1.8  Tue Mar 17 20:05:53 2020
+++ pkgsrc/devel/py-wrapt/Makefile      Mon Oct 11 18:02:12 2021
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.8 2020/03/17 20:05:53 adam Exp $
+# $NetBSD: Makefile,v 1.9 2021/10/11 18:02:12 adam Exp $
 
-DISTNAME=      wrapt-1.12.1
+DISTNAME=      wrapt-1.13.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=w/wrapt/}
@@ -10,5 +10,5 @@ HOMEPAGE=     https://github.com/GrahamDumpl
 COMMENT=       Python module for decorators, wrappers and monkey patching
 LICENSE=       2-clause-bsd
 
-.include "../../lang/python/distutils.mk"
+.include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/py-wrapt/PLIST
diff -u pkgsrc/devel/py-wrapt/PLIST:1.2 pkgsrc/devel/py-wrapt/PLIST:1.3
--- pkgsrc/devel/py-wrapt/PLIST:1.2     Mon Jan 21 10:31:16 2019
+++ pkgsrc/devel/py-wrapt/PLIST Mon Oct 11 18:02:12 2021
@@ -1,5 +1,9 @@
-@comment $NetBSD: PLIST,v 1.2 2019/01/21 10:31:16 adam Exp $
-${PYSITELIB}/${EGG_FILE}
+@comment $NetBSD: PLIST,v 1.3 2021/10/11 18:02:12 adam Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/wrapt/__init__.py
 ${PYSITELIB}/wrapt/__init__.pyc
 ${PYSITELIB}/wrapt/__init__.pyo

Index: pkgsrc/devel/py-wrapt/distinfo
diff -u pkgsrc/devel/py-wrapt/distinfo:1.7 pkgsrc/devel/py-wrapt/distinfo:1.8
--- pkgsrc/devel/py-wrapt/distinfo:1.7  Thu Oct  7 13:43:55 2021
+++ pkgsrc/devel/py-wrapt/distinfo      Mon Oct 11 18:02:12 2021
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.7 2021/10/07 13:43:55 nia Exp $
+$NetBSD: distinfo,v 1.8 2021/10/11 18:02:12 adam Exp $
 
-RMD160 (wrapt-1.12.1.tar.gz) = 3a7943cc5072f8e341badac12000e489b7a42fbb
-SHA512 (wrapt-1.12.1.tar.gz) = efc38c0adc4fcaa34499a996ea4a337a000a812254ec7ddaca38f0132020dd31afa9fe6bab3e6010df312282ab0ea7bd571b54215d8d27e0b97b270c08cf5a62
-Size (wrapt-1.12.1.tar.gz) = 27488 bytes
+RMD160 (wrapt-1.13.1.tar.gz) = 086b2c6d33d5dba6d27bd050fc628cd38ade269a
+SHA512 (wrapt-1.13.1.tar.gz) = 1789280dcf9a717393493a17bd05dbd3bd4701f0a313c57fecaa8455b4b396f2ad469dcd333c24a040fb6fb470fd22ad5f6240d71d9bc2e8de793c4bd89068ad
+Size (wrapt-1.13.1.tar.gz) = 48803 bytes



Home | Main Index | Thread Index | Old Index