From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DFC201581C1 for ; Fri, 12 Jul 2024 09:39:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 28B012BC036; Fri, 12 Jul 2024 09:39:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0B7592BC036 for ; Fri, 12 Jul 2024 09:39:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0E79C343029 for ; Fri, 12 Jul 2024 09:39:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9FC311BFC for ; Fri, 12 Jul 2024 09:39:42 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1720777179.4207a8789138c1eb04f05d08406a9fc2cf0a75d2.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/ipywidgets/files/, dev-python/ipywidgets/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/ipywidgets/files/ipywidgets-8.1.3-pytest-8.patch dev-python/ipywidgets/ipywidgets-8.1.3.ebuild X-VCS-Directories: dev-python/ipywidgets/files/ dev-python/ipywidgets/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 4207a8789138c1eb04f05d08406a9fc2cf0a75d2 X-VCS-Branch: master Date: Fri, 12 Jul 2024 09:39:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 354ff4e2-08f1-4024-a3e9-9c61ef03c06c X-Archives-Hash: 780186d29da06494e2bf6749bd215b2a commit: 4207a8789138c1eb04f05d08406a9fc2cf0a75d2 Author: Michał Górny gentoo org> AuthorDate: Fri Jul 12 09:39:18 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Jul 12 09:39:39 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4207a878 dev-python/ipywidgets: Add a pytest-8 fix Signed-off-by: Michał Górny gentoo.org> .../files/ipywidgets-8.1.3-pytest-8.patch | 91 ++++++++++++++++++++++ dev-python/ipywidgets/ipywidgets-8.1.3.ebuild | 6 +- 2 files changed, 96 insertions(+), 1 deletion(-) diff --git a/dev-python/ipywidgets/files/ipywidgets-8.1.3-pytest-8.patch b/dev-python/ipywidgets/files/ipywidgets-8.1.3-pytest-8.patch new file mode 100644 index 000000000000..0294ec1ce604 --- /dev/null +++ b/dev-python/ipywidgets/files/ipywidgets-8.1.3-pytest-8.patch @@ -0,0 +1,91 @@ +From bbc6c064aa797eb21bd5a9b441dbbc76925a72db Mon Sep 17 00:00:00 2001 +From: Lumir Balhar +Date: Thu, 11 Apr 2024 11:40:15 +0200 +Subject: [PATCH] Fix compatibility with pytest 8 + +Resolves: https://github.com/jupyter-widgets/ipywidgets/issues/3883 +--- + .../ipywidgets/ipywidgets/widgets/tests/test_interaction.py | 2 -- + python/ipywidgets/ipywidgets/widgets/tests/test_link.py | 1 - + .../ipywidgets/ipywidgets/widgets/tests/test_send_state.py | 2 +- + .../ipywidgets/ipywidgets/widgets/tests/test_set_state.py | 2 +- + python/ipywidgets/ipywidgets/widgets/tests/utils.py | 6 +++--- + 5 files changed, 5 insertions(+), 8 deletions(-) + +diff --git a/ipywidgets/widgets/tests/test_interaction.py b/ipywidgets/widgets/tests/test_interaction.py +index 0dc7e5fcfc..feb1afe50c 100644 +--- a/ipywidgets/widgets/tests/test_interaction.py ++++ b/ipywidgets/widgets/tests/test_interaction.py +@@ -19,8 +19,6 @@ + # Utility stuff + #----------------------------------------------------------------------------- + +-from .utils import setup, teardown +- + def f(**kwargs): + pass + +diff --git a/ipywidgets/widgets/tests/test_link.py b/ipywidgets/widgets/tests/test_link.py +index 0c92dfdcb2..9301764d40 100644 +--- a/ipywidgets/widgets/tests/test_link.py ++++ b/ipywidgets/widgets/tests/test_link.py +@@ -4,7 +4,6 @@ + import pytest + + from .. import jslink, jsdlink, ToggleButton +-from .utils import setup, teardown + + def test_jslink_args(): + with pytest.raises(TypeError): +diff --git a/ipywidgets/widgets/tests/test_send_state.py b/ipywidgets/widgets/tests/test_send_state.py +index ec18ae4af1..98465b9b7d 100644 +--- a/ipywidgets/widgets/tests/test_send_state.py ++++ b/ipywidgets/widgets/tests/test_send_state.py +@@ -3,7 +3,7 @@ + + from traitlets import Bool, Tuple, List + +-from .utils import setup, teardown, DummyComm ++from .utils import setup + + from ..widget import Widget + +diff --git a/ipywidgets/widgets/tests/test_set_state.py b/ipywidgets/widgets/tests/test_set_state.py +index 82ecbd9311..22ec54d90f 100644 +--- a/ipywidgets/widgets/tests/test_set_state.py ++++ b/ipywidgets/widgets/tests/test_set_state.py +@@ -6,7 +6,7 @@ + + from traitlets import Bool, Tuple, List, Instance, CFloat, CInt, Float, Int, TraitError, observe + +-from .utils import setup, teardown ++from .utils import setup + + import ipywidgets + from ipywidgets import Widget +diff --git a/ipywidgets/widgets/tests/utils.py b/ipywidgets/widgets/tests/utils.py +index 260485e3f8..8dbbcb355b 100644 +--- a/ipywidgets/widgets/tests/utils.py ++++ b/ipywidgets/widgets/tests/utils.py +@@ -12,7 +12,7 @@ + NEW_COMM_PACKAGE = False + + import ipykernel.comm +- ++import pytest + + class DummyComm(): + comm_id = 'a-b-c-d' +@@ -87,10 +87,10 @@ def teardown_test_comm(): + setattr(Widget, attr, value) + _widget_attrs.clear() + ++@pytest.fixture(autouse=True) + def setup(): + setup_test_comm() +- +-def teardown(): ++ yield + teardown_test_comm() + + def call_method(method, *args, **kwargs): diff --git a/dev-python/ipywidgets/ipywidgets-8.1.3.ebuild b/dev-python/ipywidgets/ipywidgets-8.1.3.ebuild index 9d099f8b07ae..cbbddfa905e2 100644 --- a/dev-python/ipywidgets/ipywidgets-8.1.3.ebuild +++ b/dev-python/ipywidgets/ipywidgets-8.1.3.ebuild @@ -31,7 +31,6 @@ BDEPEND=" test? ( dev-python/ipykernel[${PYTHON_USEDEP}] dev-python/jsonschema[${PYTHON_USEDEP}] -