commit: 3f32924fe148da774d897f66a2ff25302de21115 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu Jul 1 16:46:12 2021 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu Jul 1 17:53:38 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f32924f
dev-python/ipywidgets: Port to py3.10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> .../ipywidgets/files/ipywidgets-7.6.3-py310.patch | 37 ++++++++++++++++++++++ dev-python/ipywidgets/ipywidgets-7.6.3.ebuild | 8 +++-- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/dev-python/ipywidgets/files/ipywidgets-7.6.3-py310.patch b/dev-python/ipywidgets/files/ipywidgets-7.6.3-py310.patch new file mode 100644 index 00000000000..f3d82d0a8ec --- /dev/null +++ b/dev-python/ipywidgets/files/ipywidgets-7.6.3-py310.patch @@ -0,0 +1,37 @@ +From f9a13dbb3b8f1ffefef483bdb4c14f04f7743ff1 Mon Sep 17 00:00:00 2001 +From: Jason Grout <[email protected]> +Date: Tue, 31 Dec 2019 12:57:52 -0800 +Subject: [PATCH] Fix more python 3 deprecations + +--- + ipywidgets/widgets/interaction.py | 2 +- + ipywidgets/widgets/tests/test_interaction.py | 3 ++- + 2 files changed, 3 insertions(+), 2 deletions(-) + +diff --git a/ipywidgets/widgets/interaction.py b/ipywidgets/widgets/interaction.py +index 3dd7272047..6e3b9fc955 100644 +--- a/ipywidgets/widgets/interaction.py ++++ b/ipywidgets/widgets/interaction.py +@@ -246,7 +246,7 @@ def update(self, *args): + except Exception as e: + ip = get_ipython() + if ip is None: +- self.log.warn("Exception in interact callback: %s", e, exc_info=True) ++ self.log.warning("Exception in interact callback: %s", e, exc_info=True) + else: + ip.showtraceback() + finally: +diff --git a/ipywidgets/widgets/tests/test_interaction.py b/ipywidgets/widgets/tests/test_interaction.py +index 1ee946744e..c792c5377a 100644 +--- a/ipywidgets/widgets/tests/test_interaction.py ++++ b/ipywidgets/widgets/tests/test_interaction.py +@@ -249,7 +249,8 @@ def test_iterable_tuple(): + check_widgets(c, lis=d) + + def test_mapping(): +- from collections import Mapping, OrderedDict ++ from collections.abc import Mapping ++ from collections import OrderedDict + class TestMapping(Mapping): + def __init__(self, values): + self.values = values diff --git a/dev-python/ipywidgets/ipywidgets-7.6.3.ebuild b/dev-python/ipywidgets/ipywidgets-7.6.3.ebuild index a8791123ada..21b3e27415a 100644 --- a/dev-python/ipywidgets/ipywidgets-7.6.3.ebuild +++ b/dev-python/ipywidgets/ipywidgets-7.6.3.ebuild @@ -1,10 +1,10 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 DISTUTILS_USE_SETUPTOOLS=no -PYTHON_COMPAT=( python3_{7..9} ) +PYTHON_COMPAT=( python3_{8..10} ) PYTHON_REQ_USE="threads(+)" inherit distutils-r1 @@ -25,3 +25,7 @@ RDEPEND=" " distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}/${P}-py310.patch" +)
