python-decorator: bump to 5.2.1

Changes since 4.4.2:
- v5.x rewrites the implementation using the standard library
  inspect module, dropping the code generation approach
- Signature preservation is now based on functools.wraps internals
- New contextmanager and asynccontextmanager decorator support
- Python 3.8+ required; Python 2 no longer supported

Also add test.sh to verify signature preservation and basic usage.

Link: https://github.com/micheles/decorator/blob/master/CHANGES.md
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
Alexandru Ardelean
2026-03-29 12:43:37 +00:00
committed by Alexandru Ardelean
parent a7e96ec919
commit ce2804c73f
2 changed files with 52 additions and 2 deletions
+4 -2
View File
@@ -5,13 +5,15 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=python-decorator
PKG_VERSION:=4.4.2
PKG_VERSION:=5.2.1
PKG_RELEASE:=1
PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com> 
PKG_CPE_ID:=cpe:/a:python:decorator
PYPI_NAME:=decorator
PKG_HASH:=e3a62f0520172440ca0dcc823749319382e377f37f140a0b99ef45fecb84bfe7
PKG_HASH:=65f266143752f734b0a7cc83c46f4618af75b8c5911b00ccb61d0ac9b6da0360
PKG_BUILD_DEPENDS:=python-setuptools/host
include ../pypi.mk
include $(INCLUDE_DIR)/package.mk