./devel/py-decorator, Generic Python decorator utilities

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ]


Branch: CURRENT, Version: 5.3.1, Package name: py313-decorator-5.3.1, Maintainer: pkgsrc-users

The ``decorator'' module aims to simplify the usage of decorators
in Python code for the average programmer and to popularize decorators
by showing various non-trivial examples.


Required to run:
[devel/py-setuptools] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 56.723 KB

Version history: (Expand)


CVS history: (Expand)


   2026-05-20 14:54:26 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-decorator: updated to 5.3.1

5.3.1 (2026-05-18)

Added license SPDX identifier to pyproject.toml (reported by
Christian Lackas).

5.3.0 (2026-05-17)

Added official support for Python 3.14 (thanks to Hugo van Kemenade,
David Cain and the GitHub user bersbersbers).
Fixed a bug with "return await" contributed by Kadir Can Ozden.
Moved decorator.py to a package structure (`decorator/__init__.py`) and
added a stub file (`decorator/__init__.pyi`) contributed by Marco Gorelli.
   2025-04-12 12:17:52 by Adam Ciarcinski | Files touched by this commit (8) | Package updated
Log message:
Fix PLIST after py-setuptools update; bump depends and revision
   2025-02-26 09:17:14 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-decorator: updated to 5.2.1

5.2.1 (2025-02-24)

Shiv Krishna Jaiswal suggested how to manage che case of functions
without __name__.
Michał Górny contributed a fix for the generation of the source package.
   2023-08-29 09:29:24 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-decorator: updated to 5.1.1

5.1.1 (2022-01-07)

Sangwoo Shim contributed a fix so that cythonized functions can be decorated.
Brian McFee pointed out an issue in the `decorator_apply` example and
Wim Glenn pointed out that the "fix" in version 5.1 broke
`decorator.contextmanager` even more. Both issues are now solved.

5.1.0 (2021-09-11)

Added a function `decoratorx` using the `FunctionMaker` and thus
preserving the signature of `__code__` objects. Then fixed three small bugs:
- Sphinx was printing a few warnings when building the documentation, as
 signaled by Tomasz Kłoczko
- functions decorated with `decorator.contextmanager` were one-shot,
 as discovered by Alex Pizarro.
- `decorator.decorator` was not passing the kwsyntax argument.

5.0.9 (2021-05-16)

Fixed a test breaking PyPy. Restored support for Sphinx.

5.0.8 (2021-05-15)

Made the decorator module more robust when decorating builtin functions
lacking dunder attributes, like `dict.__setitem__`.

5.0.7 (2021-04-14)

The decorator module was not passing correctly the defaults inside the
`*args` tuple, thanks to Dan Shult for the fix. Also fixed some mispellings
in the documentation and integrated codespell in the CI, thanks to
Christian Clauss.

5.0.6 (2021-04-08)

The decorator module was not copying the __module__ attribute anymore.
Thanks to Nikolay Markov for the notice.

5.0.5 (2021-04-04)

Dropped support for Python < 3.5 with a substantial simplification of
the code base (now building a decorator does not require calling "exec").
Added a way to mimic functools.wraps-generated decorators.
Ported the Continuous Integration from Travis to GitHub.
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-10-26 12:20:11 by Nia Alarie | Files touched by this commit (3016)
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Could not be committed due to merge conflict:
devel/py-traitlets/distinfo

The following distfiles were unfetchable (note: some may be only fetched
conditionally):

./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
   2021-10-07 15:44:44 by Nia Alarie | Files touched by this commit (3017)
Log message:
devel: Remove SHA1 hashes for distfiles
   2020-04-11 09:47:54 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-decorator: updated to 4.4.2

4.4.2:
Sylvan Mosberger (https://github.com/Infinisil) contributed a patch to
some doctests that were breaking on NixOS.
John Vandenberg (https://github.com/jayvdb) made a case for removing the usage
of `__file__`, that was breaking PyOxidizer.
Miro Hrončok (https://github.com/hroncok) contributed some fixes for the
future Python 3.9.
Hugo van Kemenade (https://github.com/hugovk) contributed some fixes for the
future Python 3.10.