git: 1af30e1aac3f - main - x11-toolkits/py-magicgui: update 0.9.1 → 0.10.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 17 Dec 2024 09:45:57 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1af30e1aac3fa20e7898ca422616a980a109ca70

commit 1af30e1aac3fa20e7898ca422616a980a109ca70
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-12-17 09:13:48 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-12-17 09:45:35 +0000

    x11-toolkits/py-magicgui: update 0.9.1 → 0.10.0
---
 x11-toolkits/py-magicgui/Makefile | 35 +++++++++++++++++++++++++++++++++--
 x11-toolkits/py-magicgui/distinfo |  6 +++---
 2 files changed, 36 insertions(+), 5 deletions(-)

diff --git a/x11-toolkits/py-magicgui/Makefile b/x11-toolkits/py-magicgui/Makefile
index 69ac57cafa83..2c3ebf09a3ef 100644
--- a/x11-toolkits/py-magicgui/Makefile
+++ b/x11-toolkits/py-magicgui/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	magicgui
-DISTVERSION=	0.9.1
+DISTVERSION=	0.10.0
 CATEGORIES=	x11-toolkits python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -20,10 +20,41 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}docstring-parser>=0.7:textproc/py-docstring-
 		${PYTHON_PKGNAMEPREFIX}QtPy>=1.7.0:devel/py-QtPy@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}superqt>=0.6.1:x11-toolkits/py-superqt@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.6:devel/py-typing-extensions@${PY_FLAVOR}
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}ipywidgets>=8.0.0:devel/py-ipywidgets@${PY_FLAVOR} \
+		${PY_PILLOW} \
+		${PYTHON_PKGNAMEPREFIX}pint>=0.13.0:devel/py-pint@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}tqdm>=4.30.0:misc/py-tqdm@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}annotated-types>0:devel/py-annotated-types@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}attrs>0:devel/py-attrs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}ipykernel>0:devel/py-ipykernel@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}ipywidgets>0:devel/py-ipywidgets@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pillow>=4.0:graphics/py-pillow@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pint>=0.13.0:devel/py-pint@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pydantic>0:devel/py-pydantic@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-mypy-plugins>=3:devel/py-pytest-mypy-plugins@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-qt>0:devel/py-pytest-qt@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}toolz>0:devel/py-toolz@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}tqdm>=4.30.0:misc/py-tqdm@${PY_FLAVOR}
+TEST_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}pyconify>0:devel/py-pyconify@${PY_FLAVOR}
+
 
 USES=		python
-USE_PYTHON=	pep517 autoplist
+USE_PYTHON=	pep517 autoplist pytest
+
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+TEST_WRKSRC=	${WRKSRC}/tests
 
 NO_ARCH=	yes
 
+do-test: # default do-test causes python interpreter to crash
+	@cd ${TEST_WRKSRC} && \
+		${SETENV} ${TEST_ENV} pytest .
+
+# tests as of 0.10.0: 380 passed, 24 skipped, 1 xfailed in 20.29s
+
 .include <bsd.port.mk>
diff --git a/x11-toolkits/py-magicgui/distinfo b/x11-toolkits/py-magicgui/distinfo
index c25e2ee80b9c..6d1ab4f3e37e 100644
--- a/x11-toolkits/py-magicgui/distinfo
+++ b/x11-toolkits/py-magicgui/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1733947401
-SHA256 (magicgui-0.9.1.tar.gz) = e8c1c7ed281e62ec858771a76515abd705dbe3d46da2ee834ce6983a4403b94d
-SIZE (magicgui-0.9.1.tar.gz) = 20938738
+TIMESTAMP = 1734409441
+SHA256 (magicgui-0.10.0.tar.gz) = 56dbe28afc526809e09932cd6caad8fc1a8305fe66c8feca16f797a04b5aee7c
+SIZE (magicgui-0.10.0.tar.gz) = 20942460