git: db12b15e5e9e - main - www/py-asgiref: Add missing dependencies
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 03 Jun 2023 10:52:53 UTC
The branch main has been updated by kai: URL: https://cgit.FreeBSD.org/ports/commit/?id=db12b15e5e9e90d22b6478447ded3ceabab24de8 commit db12b15e5e9e90d22b6478447ded3ceabab24de8 Author: Kai Knoblich <kai@FreeBSD.org> AuthorDate: 2023-06-03 10:49:36 +0000 Commit: Kai Knoblich <kai@FreeBSD.org> CommitDate: 2023-06-03 10:49:36 +0000 www/py-asgiref: Add missing dependencies * Python versions prior 3.11 requires devel/py-typing-extensions as noted in the setup.cfg. Otherwise it leads to following error [1]: [...] from asgiref.sync import sync_to_async File "/usr/local/lib/python3.9/site-packages/asgiref/sync.py", line 27, in <module> from .current_thread_executor import CurrentThreadExecutor File "/usr/local/lib/python3.9/site-packages/asgiref/current_thread_executor.py", line 10, in <module> from typing_extensions import ParamSpec ModuleNotFoundError: No module named 'typing_extensions' [...] * Bump PORTREVISION due changed dependencies. Reported by: pkg-fallout [1] (for www/py-django-treebeard) Approved by: portmgr (buildfix blanket) Fixes: 8a94364e8648 www/py-asgiref: Update to 3.7.2 --- www/py-asgiref/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/www/py-asgiref/Makefile b/www/py-asgiref/Makefile index d1fcaa89888e..b0ab70d62b4c 100644 --- a/www/py-asgiref/Makefile +++ b/www/py-asgiref/Makefile @@ -1,5 +1,6 @@ PORTNAME= asgiref PORTVERSION= 3.7.2 +PORTREVISION= 1 CATEGORIES= www python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -19,7 +20,13 @@ USE_PYTHON= distutils autoplist NO_ARCH= yes +.include <bsd.port.pre.mk> + +.if ${PYTHON_REL} < 31100 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4:devel/py-typing-extensions@${PY_FLAVOR} +.endif + do-test: (cd ${WRKSRC} && pytest) -.include <bsd.port.mk> +.include <bsd.port.post.mk>