diff --git a/devel/py-types-decorator/Makefile b/devel/py-types-decorator/Makefile index 0bcee3ed8551..65bf63a0ccd0 100644 --- a/devel/py-types-decorator/Makefile +++ b/devel/py-types-decorator/Makefile @@ -1,19 +1,22 @@ PORTNAME= types-decorator -DISTVERSION= 5.1.8.20240310 -PORTREVISION= 1 +DISTVERSION= 5.2.0.20260712 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= types_decorator-${DISTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= Typing stubs for decorator WWW= https://github.com/python/typeshed LICENSE= APACHE20 +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} + USES= python -USE_PYTHON= distutils autoplist +USE_PYTHON= pep517 autoplist NO_ARCH= yes .include diff --git a/devel/py-types-decorator/distinfo b/devel/py-types-decorator/distinfo index 5df06dfd9fd3..edb260aa323a 100644 --- a/devel/py-types-decorator/distinfo +++ b/devel/py-types-decorator/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1714722935 -SHA256 (types-decorator-5.1.8.20240310.tar.gz) = 52e316b03783886a8a2abdc228f7071680ba65894545cd2085ebe3cf88684a0e -SIZE (types-decorator-5.1.8.20240310.tar.gz) = 3734 +TIMESTAMP = 1784571352 +SHA256 (types_decorator-5.2.0.20260712.tar.gz) = 2890f05fe3c65546baf5000fd5f1eed4d1c95bae5516e23e1735b7b5a4dd98c6 +SIZE (types_decorator-5.2.0.20260712.tar.gz) = 9374 diff --git a/devel/py-types-decorator/files/patch-pyproject.toml b/devel/py-types-decorator/files/patch-pyproject.toml new file mode 100644 index 000000000000..069c80242c9e --- /dev/null +++ b/devel/py-types-decorator/files/patch-pyproject.toml @@ -0,0 +1,36 @@ +-- Fix build with the setuptools version available in FreeBSD ports. +-- Upstream requires setuptools>=82.0.1 and uses a hyphenated package name in +-- [tool.setuptools.package-data], which the older setuptools in ports rejects. +-- Lower the build-system requirement, normalize the license declaration, and +-- use package-data '*' with a find include pattern so the stub files are still +-- installed. +--- pyproject.toml.orig 2026-07-20 18:17:17 UTC ++++ pyproject.toml +@@ -1,12 +1,11 @@ build-backend = "setuptools.build_meta" + [build-system] + build-backend = "setuptools.build_meta" +-requires = ["setuptools>=82.0.1"] ++requires = ["setuptools>=61"] + + [project] + name = "types-decorator" + version = "5.2.0.20260712" +-license = "Apache-2.0" +-license-files = ["LICENSE"] ++license = {text = "Apache-2.0"} + description = "Typing stubs for decorator" + readme = { text = """\ + ## Typing stubs for decorator +@@ -51,8 +50,10 @@ dependencies = [] + "Chat" = "https://gitter.im/python/typing" + + [tool.setuptools] +-packages = ['decorator-stubs'] + include-package-data = false + ++[tool.setuptools.packages.find] ++include = ['decorator-stubs'] ++ + [tool.setuptools.package-data] +-'decorator-stubs' = ['__init__.pyi', 'METADATA.toml', 'py.typed'] ++'*' = ['*.pyi', '*.toml', 'py.typed']