diff --git a/devel/py-wrapt/Makefile b/devel/py-wrapt/Makefile index 87f0dbfb1f90..79becdfde41c 100644 --- a/devel/py-wrapt/Makefile +++ b/devel/py-wrapt/Makefile @@ -1,23 +1,26 @@ PORTNAME= wrapt -PORTVERSION= 1.17.3 +PORTVERSION= 2.2.1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Decorators, wrappers and monkey patching -WWW= https://github.com/GrahamDumpleton/wrapt +WWW= https://wrapt.readthedocs.io/en/latest/ \ + https://github.com/GrahamDumpleton/wrapt LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=62.0:devel/py-setuptools@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} USES= python USE_PYTHON= autoplist concurrent pep517 +MAKE_ENV= WRAPT_INSTALL_EXTENSIONS=true + post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + .include diff --git a/devel/py-wrapt/distinfo b/devel/py-wrapt/distinfo index b71641ac5e79..8eab2d76d522 100644 --- a/devel/py-wrapt/distinfo +++ b/devel/py-wrapt/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1757120768 -SHA256 (wrapt-1.17.3.tar.gz) = f66eb08feaa410fe4eebd17f2a2c8e2e46d3476e9f8c783daa8e09e0faa666d0 -SIZE (wrapt-1.17.3.tar.gz) = 55547 +TIMESTAMP = 1780751954 +SHA256 (wrapt-2.2.1.tar.gz) = 6744f504375775d7609c82c8d3d94af1c9a6f05586984536905908ba905277b9 +SIZE (wrapt-2.2.1.tar.gz) = 127620 diff --git a/devel/py-wrapt/files/patch-pyproject.toml b/devel/py-wrapt/files/patch-pyproject.toml new file mode 100644 index 000000000000..ad70fbba1027 --- /dev/null +++ b/devel/py-wrapt/files/patch-pyproject.toml @@ -0,0 +1,30 @@ +--- pyproject.toml.orig 2026-05-22 14:27:07 UTC ++++ pyproject.toml +@@ -7,8 +7,7 @@ readme = "RELEASE.rst" + dynamic = ["version"] + description = "Module for decorators, wrappers and monkey patching." + readme = "RELEASE.rst" +-license = "BSD-2-Clause" +-license-files = ["LICENSE"] ++license = {text = "BSD-2-Clause"} + authors = [ + {name = "Graham Dumpleton", email = "Graham.Dumpleton@gmail.com"} + ] +@@ -42,17 +41,6 @@ zip-safe = false + [tool.setuptools] + package-dir = {"" = "src"} + zip-safe = false +-# Listed explicitly rather than discovered because "wrapt-stubs" (the PEP 561 +-# stub-only companion package) has a hyphen in its directory name and no +-# __init__.py, which setuptools' `find` does not pick up by default. +-packages = ["wrapt", "wrapt-stubs"] +- +-# Use "*" rather than "wrapt-stubs" because the pyproject.toml validator only +-# accepts keys that are valid Python module names or "*"; hyphenated PEP 561 +-# stub package names are rejected. Since only the wrapt-stubs package contains +-# .pyi files, matching all packages has the same practical effect. +-[tool.setuptools.package-data] +-"*" = ["*.pyi"] + + [tool.setuptools.dynamic] + version = {attr = "wrapt.__version__"}