mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-05 14:07:27 -08:00
dev-python/nbclient: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
parent
cd97c7324b
commit
0d71dacf0b
@ -1,2 +1 @@
|
||||
DIST nbclient-0.10.1.tar.gz 62273 BLAKE2B 0a268e4078af3807b6795d5b6dbbc572628d891d42f4ddeed3decd06d471cad59ab903e652be6a7f1e00a07cea3745cd989c62674e937934a6a696dfd24eefa4 SHA512 8c5b52aa367f255669fa7ad248d45292dd0e3589e23e381027a093c9fc57280eb296f453c2bfc3c57969056846a0caba81e57feaad1768e70aff006df4b85324
|
||||
DIST nbclient-0.10.2.tar.gz 62424 BLAKE2B f0efae4b3eed70f04f3d0cc830ef4cc47ed98b93785c6048103b62aff9537eaeebc0ad54a513c142c3d76c64d093c9bac3003608c6510b719d9b5de7b67ad463 SHA512 e19e58950822711af8588fdb7a24c1df028c77c2e128023494335973ff28f524478637c491b16329c38edb2ff7714632d4216e6483bb9aa79e2b393e3de72be8
|
||||
|
||||
@ -1,35 +0,0 @@
|
||||
From 57222265bfd8bdcf8851997e1dce5cd564e1a573 Mon Sep 17 00:00:00 2001
|
||||
From: Lumir Balhar <lbalhar@redhat.com>
|
||||
Date: Wed, 3 Jul 2024 14:21:41 +0200
|
||||
Subject: [PATCH] Fix compatibility with Python 3.13 beta 2
|
||||
|
||||
There are more calls in 3.13 than in previous versions
|
||||
so the tests are now more permissive.
|
||||
|
||||
Fixes: https://github.com/jupyter/nbclient/issues/316
|
||||
---
|
||||
tests/test_cli.py | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/tests/test_cli.py b/tests/test_cli.py
|
||||
index 04b9887..55ccbd6 100644
|
||||
--- a/tests/test_cli.py
|
||||
+++ b/tests/test_cli.py
|
||||
@@ -60,7 +60,7 @@ def test_mult(input_names, relative, inplace, jupyterapp, client, reader, writer
|
||||
# add suffix if needed
|
||||
paths = [p.with_suffix(".ipynb") for p in paths]
|
||||
|
||||
- assert path_open.mock_calls[::3] == [call(p) for p in paths]
|
||||
+ assert all(call(p) in path_open.mock_calls for p in paths)
|
||||
assert reader.call_count == len(paths)
|
||||
# assert reader.mock_calls == [call(p, as_version=4) for p in paths]
|
||||
|
||||
@@ -114,7 +114,7 @@ def test_output(input_names, relative, output_base, jupyterapp, client, reader,
|
||||
# add suffix if needed
|
||||
paths = [p.with_suffix(".ipynb") for p in paths]
|
||||
|
||||
- assert path_open.mock_calls[::3] == [call(p) for p in paths]
|
||||
+ assert all(call(p) in path_open.mock_calls for p in paths)
|
||||
assert reader.call_count == len(paths)
|
||||
|
||||
expected = []
|
||||
@ -1,58 +0,0 @@
|
||||
# Copyright 2020-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="A client library for executing Jupyter notebooks"
|
||||
HOMEPAGE="
|
||||
https://nbclient.readthedocs.io/en/latest/
|
||||
https://github.com/jupyter/nbclient/
|
||||
https://pypi.org/project/nbclient/
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv ~s390 sparc x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/jupyter-client-6.1.12[${PYTHON_USEDEP}]
|
||||
>=dev-python/jupyter-core-5.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/nbformat-5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/traitlets-5.4[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/flaky[${PYTHON_USEDEP}]
|
||||
dev-python/ipython[${PYTHON_USEDEP}]
|
||||
>=dev-python/ipykernel-6.19.3[${PYTHON_USEDEP}]
|
||||
dev-python/ipywidgets[${PYTHON_USEDEP}]
|
||||
dev-python/nbconvert[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
|
||||
dev-python/testpath[${PYTHON_USEDEP}]
|
||||
dev-python/xmltodict[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_XDIST=1
|
||||
distutils_enable_tests pytest
|
||||
|
||||
PATCHES=(
|
||||
# https://github.com/jupyter/nbclient/pull/317
|
||||
"${FILESDIR}/${PN}-0.10.0-py313.patch"
|
||||
)
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# hangs?
|
||||
'tests/test_client.py::test_run_all_notebooks[Interrupt.ipynb-opts6]'
|
||||
)
|
||||
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
epytest -p asyncio -p rerunfailures --reruns=3
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user