Skip to content

Commit 4b6fa96

Browse files
committed
[WIP] python3-ipython_ipykernel: update to 7.0.0a0.
1 parent 91cde29 commit 4b6fa96

File tree

6 files changed

+53
-181
lines changed

6 files changed

+53
-181
lines changed

srcpkgs/python3-ipython_ipykernel/patches/1248.patch

Lines changed: 0 additions & 42 deletions
This file was deleted.

srcpkgs/python3-ipython_ipykernel/patches/1277.diff

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ index beca44b1..81170b97 100644
104104
@@ -15,7 +15,7 @@
105105
from collections import defaultdict, deque
106106
from io import StringIO, TextIOBase
107-
from threading import local
107+
from threading import Event, Thread, local
108108
-from typing import Any, Callable, Deque, Dict, Optional
109109
+from typing import Any, Callable, Optional
110110

@@ -139,18 +139,18 @@ index db83d986..48efa6cd 100644
139139

140140
+from __future__ import annotations
141141
+
142-
import asyncio
143142
import builtins
144143
import gc
144+
import getpass
145145
@@ -16,7 +18,7 @@
146146
from IPython.core import release
147147
from IPython.utils.tokenutil import line_at_cursor, token_at_cursor
148148
from jupyter_client.session import extract_header
149149
-from traitlets import Any, Bool, HasTraits, Instance, List, Type, observe, observe_compat
150150
+from traitlets import Any, Bool, HasTraits, Instance, List, Type, default, observe, observe_compat
151-
from zmq.eventloop.zmqstream import ZMQStream
152151

153152
from .comm.comm import BaseComm
153+
from .comm.manager import CommManager
154154
@@ -46,7 +48,7 @@ def _create_comm(*args, **kwargs):
155155

156156
# there can only be one comm manager in a ipykernel process
@@ -233,6 +233,6 @@ index 1e9e543c..e1d7b1d5 100644
233233
+
234234
+ # ignore unclosed sqlite in traits
235235
+ "ignore:unclosed database in <sqlite3.Connection:ResourceWarning",
236-
]
237236

238-
[tool.coverage.report]
237+
# https://github.com/python-trio/trio/issues/3053
238+
"ignore:The `hash` argument is deprecated in favor of `unsafe_hash` and will be removed in or after August 2025.",

srcpkgs/python3-ipython_ipykernel/patches/disable-debugpy.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ https://github.com/ipython/ipykernel/pull/767#issuecomment-916913893
99
]
1010
requires-python = ">=3.8"
1111
dependencies = [
12-
- "debugpy>=1.6.5",
12+
- "debugpy>=1.8.1",
1313
"ipython>=7.23.1",
1414
"comm>=0.1.1",
1515
"traitlets>=5.4.0",

srcpkgs/python3-ipython_ipykernel/patches/pytest8.patch

Lines changed: 0 additions & 129 deletions
This file was deleted.

srcpkgs/python3-ipython_ipykernel/template

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Template file for 'python3-ipython_ipykernel'
22
pkgname=python3-ipython_ipykernel
3-
version=6.29.5
4-
revision=3
3+
version=7.0.0a0
4+
revision=1
55
build_style=python3-pep517
66
# run all tests available
77
make_check_target="tests"
88
hostmakedepends="hatchling python3-jupyter_client"
99
depends="python3-comm python3-ipython python3-jupyter_client
1010
python3-jupyter_core python3-matplotlib-inline python3-nest_asyncio
11-
python3-packaging python3-psutil python3-pyzmq python3-tornado
11+
python3-packaging python3-psutil python3-pyzmq python3-anyio
1212
python3-traitlets"
1313
checkdepends="$depends python3-flaky python3-pytest-asyncio
1414
python3-pytest-timeout python3-trio python3-curio python3-matplotlib
@@ -19,7 +19,7 @@ license="BSD-3-Clause"
1919
homepage="https://github.com/ipython/ipykernel"
2020
changelog="https://raw.githubusercontent.com/ipython/ipykernel/main/CHANGELOG.md"
2121
distfiles="${PYPI_SITE}/i/ipykernel/ipykernel-${version}.tar.gz"
22-
checksum=f093a22c4a40f8828f8e330a9c297cb93dcab13bd9678ded6de8e5cf81c56215
22+
checksum=143ed530d3930f55246ee3d0b50060962ff1270c271185d7b7832287445f3ecc
2323

2424
if [ "$XBPS_CHECK_PKGS" = full ]; then
2525
# this would cause a build-time circular dependency
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Template file for 'python3-ipython_ipykernel'
2+
pkgname=python3-ipython_ipykernel
3+
version=6.29.5
4+
revision=3
5+
build_style=python3-pep517
6+
# run all tests available
7+
make_check_target="tests"
8+
hostmakedepends="hatchling python3-jupyter_client"
9+
depends="python3-comm python3-ipython python3-jupyter_client
10+
python3-jupyter_core python3-matplotlib-inline python3-nest_asyncio
11+
python3-packaging python3-psutil python3-pyzmq python3-tornado
12+
python3-traitlets"
13+
checkdepends="$depends python3-flaky python3-pytest-asyncio
14+
python3-pytest-timeout python3-trio python3-curio python3-matplotlib
15+
python3-PyQt5 python3-PyQt5-svg python3-pytest-xdist"
16+
short_desc="IPython kernel for Jupyter"
17+
maintainer="Gonzalo Tornaría <[email protected]>"
18+
license="BSD-3-Clause"
19+
homepage="https://github.com/ipython/ipykernel"
20+
changelog="https://raw.githubusercontent.com/ipython/ipykernel/main/CHANGELOG.md"
21+
distfiles="${PYPI_SITE}/i/ipykernel/ipykernel-${version}.tar.gz"
22+
checksum=f093a22c4a40f8828f8e330a9c297cb93dcab13bd9678ded6de8e5cf81c56215
23+
24+
if [ "$XBPS_CHECK_PKGS" = full ]; then
25+
# this would cause a build-time circular dependency
26+
checkdepends+=" python3-ipyparallel"
27+
else
28+
# These tests require ipyparallel
29+
make_check_args+="
30+
--ignore tests/test_pickleutil.py
31+
--deselect tests/test_ipkernel_direct.py::test_do_apply
32+
"
33+
fi
34+
35+
if [ "$XBPS_BUILD_ENVIRONMENT" = void-packages-ci ] &&
36+
[ "$XBPS_TARGET_LIBC" = "musl" ]; then
37+
# Also fails "on Windows and MacOS Python 3.8+" so just disable it
38+
make_check_args+=" --deselect tests/test_kernel.py::test_subprocess_print"
39+
fi
40+
41+
post_install() {
42+
vlicense LICENSE
43+
}

0 commit comments

Comments
 (0)