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 05A9B1581C1 for ; Fri, 12 Jul 2024 10:36:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3ABD1E2B7A; Fri, 12 Jul 2024 10:36:52 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 18068E2B7A for ; Fri, 12 Jul 2024 10:36:52 +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 3034033BE9F for ; Fri, 12 Jul 2024 10:36:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ED6E71E28 for ; Fri, 12 Jul 2024 10:36:47 +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: <1720780600.b5649922c49d7f24fbffde70a793c1af9afd3f8e.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-py313.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: b5649922c49d7f24fbffde70a793c1af9afd3f8e X-VCS-Branch: master Date: Fri, 12 Jul 2024 10:36:47 +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: 82ad3a80-ab35-49cf-9514-9abba14a3ac7 X-Archives-Hash: c24001ca81c84f902c505b85e90783df commit: b5649922c49d7f24fbffde70a793c1af9afd3f8e Author: Michał Górny gentoo org> AuthorDate: Fri Jul 12 10:12:49 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Jul 12 10:36:40 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5649922 dev-python/ipywidgets: Enable py3.13 Signed-off-by: Michał Górny gentoo.org> .../ipywidgets/files/ipywidgets-8.1.3-py313.patch | 30 ++++++++++++++++++++++ dev-python/ipywidgets/ipywidgets-8.1.3.ebuild | 4 ++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/dev-python/ipywidgets/files/ipywidgets-8.1.3-py313.patch b/dev-python/ipywidgets/files/ipywidgets-8.1.3-py313.patch new file mode 100644 index 000000000000..c8bd3e22a8a6 --- /dev/null +++ b/dev-python/ipywidgets/files/ipywidgets-8.1.3-py313.patch @@ -0,0 +1,30 @@ +From acfa9a3539648a04b11331ad07cab4393069f87f Mon Sep 17 00:00:00 2001 +From: Lumir Balhar +Date: Tue, 18 Jun 2024 11:58:07 +0200 +Subject: [PATCH] Make tests compatible with Python 3.13 + +Python compiler newly removes indent from docstrings +https://github.com/python/cpython/issues/81283 +--- + python/ipywidgets/ipywidgets/widgets/tests/test_docutils.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/ipywidgets/widgets/tests/test_docutils.py b/ipywidgets/widgets/tests/test_docutils.py +index 1f8b09aa34..462293326c 100644 +--- a/ipywidgets/widgets/tests/test_docutils.py ++++ b/ipywidgets/widgets/tests/test_docutils.py +@@ -15,7 +15,7 @@ def test_substitution(self): + def f(): + """ Docstring with value {key} """ + +- assert f.__doc__ == " Docstring with value 62 " ++ assert "Docstring with value 62" in f.__doc__ + + def test_unused_keys(self): + snippets = {'key': '62', 'other-key': 'unused'} +@@ -24,4 +24,4 @@ def test_unused_keys(self): + def f(): + """ Docstring with value {key} """ + +- assert f.__doc__ == " Docstring with value 62 " ++ assert "Docstring with value 62" in f.__doc__ diff --git a/dev-python/ipywidgets/ipywidgets-8.1.3.ebuild b/dev-python/ipywidgets/ipywidgets-8.1.3.ebuild index fc8deb46de9b..2d8b2a1677c2 100644 --- a/dev-python/ipywidgets/ipywidgets-8.1.3.ebuild +++ b/dev-python/ipywidgets/ipywidgets-8.1.3.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( pypy3 python3_{10..12} ) +PYTHON_COMPAT=( pypy3 python3_{10..13} ) PYTHON_REQ_USE="threads(+)" inherit distutils-r1 pypi @@ -43,6 +43,8 @@ distutils_enable_tests pytest PATCHES=( # https://github.com/jupyter-widgets/ipywidgets/pull/3903 "${FILESDIR}/${P}-pytest-8.patch" + # https://github.com/jupyter-widgets/ipywidgets/pull/3924 + "${FILESDIR}/${P}-py313.patch" ) python_test() {