pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-decorator
Module Name: pkgsrc
Committed By: adam
Date: Tue Nov 24 08:09:59 UTC 2026
Modified Files:
pkgsrc/devel/py-decorator: Makefile distinfo
Log Message:
py-decorator: updated to 5.3.2
5.3.2 (2026-11-21)
Added official support for Python 3.15.
Preserved each layer of `__wrapped__` when stacking decorators or wrapping
an already decorated caller (contributed by Jake Wang).
Fixed `FunctionMaker.create` raising a `SyntaxError` when the signature
string contains a return annotation, e.g.
`create("f(a) -> int", "return a")` (contributed by Apoorv Darshan).
Generator functions decorated with a generator caller now return the
value returned by the caller, instead of always returning `None`
(contributed by Huanyi Xie).
Fixed `dispatch_on` raising `StopIteration` when called with an
unregistered `object()` instance: now the default implementation is
called (contributed by Muneeb Sheikh).
Corrected the return types of `getfullargspec` and `inspect_sig` in the
stub file (contributed by Huanyi Xie).
Added homepage and repository links to the package metadata (contributed
by the GitHub user Sinkleberg).
Fixed `dispatch_on` raising a `TypeError` when an implementation is
registered for a virtual ancestor of a type that cannot be subclassed,
like `range`, `memoryview` or `bool`, or of an enum (reported by
Rajatendu Dey). Also fixed `dispatch_on` raising a `TypeError` when a
class is passed as a dispatch argument.
Decorating a `functools.partial` no longer alters the original partial
(adding `__wrapped__` and changing its signature), so decorating the same
partial twice no longer rejects valid calls (contributed by Gabriel
Demetrios Lafis).
`FunctionMaker` now preserves positional-only parameters, so functions
decorated with `decoratorx` or generated by `dispatch_on` reject
positional-only arguments passed by name, and accept keyword arguments
with the same name in `**kwargs` (contributed by Gabriel Demetrios Lafis).
`getfullargspec`, now reimplemented on top of `inspect.signature`, does not
follow `__wrapped__`, like `inspect.getfullargspec`, so `decoratorx` and
`dispatch_on` keep working with functions decorated by `functools.wraps`
(contributed by Tejesh Vaish).
In Python 3.14+ `FunctionMaker` copies the deferred annotations of the
original function without evaluating them, so `decoratorx` and
`dispatch_on` work with annotations referring to names imported only
under `TYPE_CHECKING`.
To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 pkgsrc/devel/py-decorator/Makefile
cvs rdiff -u -r1.21 -r1.22 pkgsrc/devel/py-decorator/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-decorator/Makefile
diff -u pkgsrc/devel/py-decorator/Makefile:1.24 pkgsrc/devel/py-decorator/Makefile:1.25
--- pkgsrc/devel/py-decorator/Makefile:1.24 Wed May 20 12:54:26 2026
+++ pkgsrc/devel/py-decorator/Makefile Tue Nov 24 08:09:58 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.24 2026/05/20 12:54:26 adam Exp $
+# $NetBSD: Makefile,v 1.25 2026/11/24 08:09:58 adam Exp $
-DISTNAME= decorator-5.3.1
+DISTNAME= decorator-5.3.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=d/decorator/}
Index: pkgsrc/devel/py-decorator/distinfo
diff -u pkgsrc/devel/py-decorator/distinfo:1.21 pkgsrc/devel/py-decorator/distinfo:1.22
--- pkgsrc/devel/py-decorator/distinfo:1.21 Wed May 20 12:54:26 2026
+++ pkgsrc/devel/py-decorator/distinfo Tue Nov 24 08:09:58 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.21 2026/05/20 12:54:26 adam Exp $
+$NetBSD: distinfo,v 1.22 2026/11/24 08:09:58 adam Exp $
-BLAKE2s (decorator-5.3.1.tar.gz) = 745be0061e4dac5c98df0d02c7706dcf72efe15560cfa5f7b289da3b11ef696d
-SHA512 (decorator-5.3.1.tar.gz) = 55fe7d85849916cecb3f55b582ca325764af654769f5ea93ee3f877304dbc776ab7d0eda8f7d5f6d2f36c18717f7237ab10aef3c8a6b65822a648c9dbaea4772
-Size (decorator-5.3.1.tar.gz) = 58084 bytes
+BLAKE2s (decorator-5.3.2.tar.gz) = 097f0b4c73da299756184fd2e5c4d852b26a9c45fe0f01e9b22a0cadd1302da8
+SHA512 (decorator-5.3.2.tar.gz) = 68190cd6e6b198268a7f3c5bd4fba83f8e4961f3d88a03c4c11953082d35fd98e69938fc9668da8f0052693681a30ac40d39a474a76c5a560cb3c43f7df12522
+Size (decorator-5.3.2.tar.gz) = 62733 bytes
Home |
Main Index |
Thread Index |
Old Index