diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-07-01 18:46:12 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-07-01 19:53:38 +0200 |
commit | 3f32924fe148da774d897f66a2ff25302de21115 (patch) | |
tree | b0083074a1cd19bc1ff1c908e22a9d11e1ce79be /dev-python/ipywidgets | |
parent | dev-python/requests-unixsocket: Port to py3.10 (diff) | |
download | gentoo-3f32924fe148da774d897f66a2ff25302de21115.tar.gz gentoo-3f32924fe148da774d897f66a2ff25302de21115.tar.bz2 gentoo-3f32924fe148da774d897f66a2ff25302de21115.zip |
dev-python/ipywidgets: Port to py3.10
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/ipywidgets')
-rw-r--r-- | dev-python/ipywidgets/files/ipywidgets-7.6.3-py310.patch | 37 | ||||
-rw-r--r-- | 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 000000000000..f3d82d0a8ec1 --- /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 <jgrout6@bloomberg.net> +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 a8791123ada1..21b3e27415a5 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" +) |