diff --git a/devel/py-types-pytz/Makefile b/devel/py-types-pytz/Makefile index 5efc9232341e..c4bf36226528 100644 --- a/devel/py-types-pytz/Makefile +++ b/devel/py-types-pytz/Makefile @@ -1,20 +1,23 @@ PORTNAME= types-pytz -DISTVERSION= 2025.2.0.20251108 +DISTVERSION= 2026.2.0.20260518 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= Typing stubs for pytz WWW= https://github.com/python/typeshed LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} + USES= python -USE_PYTHON= autoplist distutils +USE_PYTHON= pep517 autoplist NO_ARCH= yes .include diff --git a/devel/py-types-pytz/distinfo b/devel/py-types-pytz/distinfo index bdf164b2f477..a25b30a75158 100644 --- a/devel/py-types-pytz/distinfo +++ b/devel/py-types-pytz/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1763953677 -SHA256 (types_pytz-2025.2.0.20251108.tar.gz) = fca87917836ae843f07129567b74c1929f1870610681b4c92cb86a3df5817bdb -SIZE (types_pytz-2025.2.0.20251108.tar.gz) = 10961 +TIMESTAMP = 1784565803 +SHA256 (types_pytz-2026.2.0.20260518.tar.gz) = e5d254329e9c4e91f0781b22c43a4bb2d10bb044d97b24c4b05d45567b0eae16 +SIZE (types_pytz-2026.2.0.20260518.tar.gz) = 10871 diff --git a/devel/py-types-pytz/files/patch-pyproject.toml b/devel/py-types-pytz/files/patch-pyproject.toml index 3e4c01bb8ff2..3d58133e5b78 100644 --- a/devel/py-types-pytz/files/patch-pyproject.toml +++ b/devel/py-types-pytz/files/patch-pyproject.toml @@ -1,20 +1,34 @@ ---- pyproject.toml.orig 2026-06-29 15:09:53 UTC +-- 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 and use package-data '*' with a find +-- include pattern so the stub files are still installed. +--- pyproject.toml.orig 2026-07-20 16:57:01 UTC +++ pyproject.toml -@@ -5,8 +5,6 @@ version = "2025.2.0.20251108" +@@ -1,12 +1,10 @@ build-backend = "setuptools.build_meta" + [build-system] + build-backend = "setuptools.build_meta" +-requires = ["setuptools>=82.0.1"] ++requires = ["setuptools>=61"] + [project] name = "types-pytz" - version = "2025.2.0.20251108" + version = "2026.2.0.20260518" -license = "Apache-2.0" -license-files = ["LICENSE"] description = "Typing stubs for pytz" readme = { text = """\ ## Typing stubs for pytz -@@ -46,5 +44,7 @@ dependencies = [] +@@ -46,8 +44,10 @@ dependencies = [] "Chat" = "https://gitter.im/python/typing" [tool.setuptools] -packages = ['pytz-stubs'] include-package-data = false -+ + +[tool.setuptools.packages.find] +include = ['pytz-stubs'] ++ + [tool.setuptools.package-data] +-'pytz-stubs' = ['__init__.pyi', 'exceptions.pyi', 'lazy.pyi', 'reference.pyi', 'tzfile.pyi', 'tzinfo.pyi', 'METADATA.toml', 'py.typed'] ++'*' = ['*.pyi', '*.toml', 'py.typed']