diff --git a/devel/py-types-retry/Makefile b/devel/py-types-retry/Makefile index 5535f9010846..3fa05fb5b741 100644 --- a/devel/py-types-retry/Makefile +++ b/devel/py-types-retry/Makefile @@ -1,19 +1,30 @@ PORTNAME= types-retry -DISTVERSION= 0.9.9.4 -PORTREVISION= 1 +DISTVERSION= 0.9.9.20260408 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= types_retry-${DISTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= Typing stubs for retry WWW= https://github.com/python/typeshed LICENSE= APACHE20 USES= python USE_PYTHON= autoplist distutils NO_ARCH= yes +# Use generated setup.py because upstream PEP 621 license metadata is incompatible with the ports setuptools version. +post-extract: + @${ECHO} "from setuptools import setup" > ${WRKSRC}/setup.py + @${ECHO} "setup(" >> ${WRKSRC}/setup.py + @${ECHO} " name='types-retry'," >> ${WRKSRC}/setup.py + @${ECHO} " version='${DISTVERSION}'," >> ${WRKSRC}/setup.py + @${ECHO} " packages=['retry-stubs']," >> ${WRKSRC}/setup.py + @${ECHO} " package_data={'retry-stubs': ['__init__.pyi', 'api.pyi', 'METADATA.toml', 'py.typed']}," >> ${WRKSRC}/setup.py + @${ECHO} " include_package_data=False," >> ${WRKSRC}/setup.py + @${ECHO} ")" >> ${WRKSRC}/setup.py + .include diff --git a/devel/py-types-retry/distinfo b/devel/py-types-retry/distinfo index 1653f3cbd877..dc15f36e6914 100644 --- a/devel/py-types-retry/distinfo +++ b/devel/py-types-retry/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1689920187 -SHA256 (types-retry-0.9.9.4.tar.gz) = e4731dc684b56b875d9746459ad665d3bc281a56b530acdf1c97730167799941 -SIZE (types-retry-0.9.9.4.tar.gz) = 2845 +TIMESTAMP = 1785521697 +SHA256 (types_retry-0.9.9.20260408.tar.gz) = 3f98fa62ec027449383f5c019cceacc784c1dbab4760989ddab421f7b8407d92 +SIZE (types_retry-0.9.9.20260408.tar.gz) = 7778 diff --git a/devel/py-types-retry/files/patch-pyproject.toml b/devel/py-types-retry/files/patch-pyproject.toml new file mode 100644 index 000000000000..83ecd4aa1579 --- /dev/null +++ b/devel/py-types-retry/files/patch-pyproject.toml @@ -0,0 +1,26 @@ +-- Convert the deprecated string form of project.license to the PEP 621 +-- table form, remove project.license-files, and drop the [tool.setuptools] +-- configuration that the setuptools version in the ports tree does not accept. +-- Package metadata is supplied by the generated setup.py instead. +--- pyproject.toml.orig 2026-07-31 21:19:26.267079000 -0700 ++++ pyproject.toml +@@ -5,8 +5,7 @@ + [project] + name = "types-retry" + version = "0.9.9.20260408" +-license = "Apache-2.0" +-license-files = ["LICENSE"] ++license = {text = "Apache-2.0"} + description = "Typing stubs for retry" + readme = { text = """\ + ## Typing stubs for retry +@@ -45,9 +44,3 @@ + "Issue tracker" = "https://github.com/python/typeshed/issues" + "Chat" = "https://gitter.im/python/typeshed" + +-[tool.setuptools] +-packages = ['retry-stubs'] +-include-package-data = false +- +-[tool.setuptools.package-data] +-'retry-stubs' = ['__init__.pyi', 'api.pyi', 'METADATA.toml', 'py.typed']