git: 7dda6b563549 - main - devel/py-spyder-kernels: Update to 3.0.0

From: Rainer Hurling <rhurlin_at_FreeBSD.org>
Date: Sat, 07 Sep 2024 07:24:55 UTC
The branch main has been updated by rhurlin:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7dda6b563549e7e681e4ae86d8a06c3e7868cda9

commit 7dda6b563549e7e681e4ae86d8a06c3e7868cda9
Author:     Rainer Hurling <rhurlin@FreeBSD.org>
AuthorDate: 2024-09-07 06:03:18 +0000
Commit:     Rainer Hurling <rhurlin@FreeBSD.org>
CommitDate: 2024-09-07 07:24:12 +0000

    devel/py-spyder-kernels: Update to 3.0.0
    
    Changelog: https://github.com/spyder-ide/spyder-kernels/blob/master/CHANGELOG.md#version-300-2024-08-29
    
    PR:             281318
    Reported by:    portscout, Repology
---
 devel/py-spyder-kernels/Makefile                   | 14 ++++++++-----
 devel/py-spyder-kernels/distinfo                   |  6 +++---
 devel/py-spyder-kernels/files/patch-setup.py       | 23 ++++++++++------------
 ..._kernels_console_tests_test__console__kernel.py | 11 +++++++++++
 4 files changed, 33 insertions(+), 21 deletions(-)

diff --git a/devel/py-spyder-kernels/Makefile b/devel/py-spyder-kernels/Makefile
index 612474b32382..de21c7945542 100644
--- a/devel/py-spyder-kernels/Makefile
+++ b/devel/py-spyder-kernels/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	spyder-kernels
-DISTVERSION=	2.5.2
+DISTVERSION=	3.0.0
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -15,12 +15,14 @@ LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cloudpickle>0:devel/py-cloudpickle@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}ipykernel>=6.29.3:devel/py-ipykernel@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}ipyparallel>0:devel/py-ipyparallel@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}ipython>=7.31.1:devel/ipython@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}jupyter-client>=7.3.4<9:devel/py-jupyter-client@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pyzmq>=22.1.0:net/py-pyzmq@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}ipython>=8.13.0:devel/ipython@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}jupyter-client>=7.4.9:devel/py-jupyter-client@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}xdg>0:devel/py-xdg@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pyzmq>=24.0.0:net/py-pyzmq@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}traitlets>0:devel/py-traitlets@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wurlitzer>=1.0.3:misc/py-wurlitzer@${PY_FLAVOR}
-# 92 passed, 6 skipped, 6 warnings 
+# 100 passed, 7 skipped, 4 warnings
+# 1 failure may occur, see https://github.com/spyder-ide/spyder-kernels/issues/501
 # test_django_settings fail if www/djangoXX not installed
 TEST_DEPENDS=	${PYNUMPY} \
 		${PYTHON_PKGNAMEPREFIX}codecov>0:devel/py-codecov@${PY_FLAVOR} \
@@ -28,11 +30,13 @@ TEST_DEPENDS=	${PYNUMPY} \
 		${PYTHON_PKGNAMEPREFIX}dask>0:devel/py-dask@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}distributed>0:devel/py-distributed@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}flaky>0:devel/py-flaky@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}h5py>0:science/py-h5py@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}ipython_genutils>0:devel/py-ipython_genutils@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pydicom>0:science/py-pydicom@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest-forked>0:devel/py-pytest-forked@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest-mock>0:devel/py-pytest-mock@${PY_FLAVOR} \
diff --git a/devel/py-spyder-kernels/distinfo b/devel/py-spyder-kernels/distinfo
index e0546a54f632..1093e3b0e5da 100644
--- a/devel/py-spyder-kernels/distinfo
+++ b/devel/py-spyder-kernels/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1718480400
-SHA256 (spyder_kernels-2.5.2.tar.gz) = 71f252900e02b0394820cc7049f89ed725243f6fccf640b76dd329203c413960
-SIZE (spyder_kernels-2.5.2.tar.gz) = 99972
+TIMESTAMP = 1725035739
+SHA256 (spyder_kernels-3.0.0.tar.gz) = 3d316ea04802ed1feb366405cca03df2349dc9e35ad8653538d2fe48c0e9417f
+SIZE (spyder_kernels-3.0.0.tar.gz) = 242868
diff --git a/devel/py-spyder-kernels/files/patch-setup.py b/devel/py-spyder-kernels/files/patch-setup.py
index ce5a1781a87a..ab9cc87e019a 100644
--- a/devel/py-spyder-kernels/files/patch-setup.py
+++ b/devel/py-spyder-kernels/files/patch-setup.py
@@ -1,19 +1,16 @@
---- setup.py.orig	2024-02-28 01:51:49 UTC
+--- setup.py.orig	2024-06-11 16:06:35 UTC
 +++ setup.py
-@@ -41,13 +41,13 @@ REQUIREMENTS = [
+@@ -37,10 +37,10 @@ REQUIREMENTS = [
+ 
+ REQUIREMENTS = [
      'cloudpickle',
-     'ipykernel>=4.5,<5; python_version<"3"',
-     'ipykernel>=6.16.1,<6.17; python_version<"3.8"',
--    'ipykernel>=6.29.3,<7; python_version>="3.8"',
-+    'ipykernel>=6.29.3; python_version>="3.8"',
-     'ipython<6; python_version<"3"',
-     'ipython>=7.31.1,<8; python_version<"3.8"',
+-    'ipykernel>=6.29.3,<7',
++    'ipykernel>=6.29.3',
      'ipython>=8.12.2,<8.13; python_version=="3.8"',
 -    'ipython>=8.13.0,<9,!=8.17.1; python_version>"3.8"',
+-    'jupyter-client>=7.4.9,<9',
 +    'ipython>=8.13.0,!=8.17.1; python_version>"3.8"',
-     'jupyter-client>=5.3.4,<6; python_version<"3"',
--    'jupyter-client>=7.4.9,<9; python_version>="3"',
-+    'jupyter-client>=7.4.9; python_version>="3"',
-     'pyzmq>=17,<20; python_version<"3"',
-     'pyzmq>=24.0.0; python_version>="3"',
++    'jupyter-client>=7.4.9',
+     'pyzmq>=24.0.0',
      'wurlitzer>=1.0.3;platform_system!="Windows"',
+     'pyxdg>=0.26;platform_system=="Linux"',
diff --git a/devel/py-spyder-kernels/files/patch-spyder__kernels_console_tests_test__console__kernel.py b/devel/py-spyder-kernels/files/patch-spyder__kernels_console_tests_test__console__kernel.py
new file mode 100644
index 000000000000..e6c93a2f279f
--- /dev/null
+++ b/devel/py-spyder-kernels/files/patch-spyder__kernels_console_tests_test__console__kernel.py
@@ -0,0 +1,11 @@
+--- spyder_kernels/console/tests/test_console_kernel.py.orig	2024-08-19 17:12:51 UTC
++++ spyder_kernels/console/tests/test_console_kernel.py
+@@ -1320,7 +1320,7 @@ def test_interrupt():
+                 # not from my request
+                 continue
+             break
+-        assert time.time() - t0 < 5
++        assert time.time() - t0 < 15
+ 
+ 
+ def test_enter_debug_after_interruption():