diff --git a/.gitignore b/.gitignore index 2d30be3..0ec5d5a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /ipywidgets-7.6.4.tar.gz /ipywidgets-7.6.5.tar.gz /ipywidgets-7.7.0.tar.gz +/ipywidgets-8.0.1.tar.gz diff --git a/py3_11.patch b/py3_11.patch deleted file mode 100644 index 33271d8..0000000 --- a/py3_11.patch +++ /dev/null @@ -1,25 +0,0 @@ -From ca1bd4f5455aaea45005acba5fa6a56f98db4ed6 Mon Sep 17 00:00:00 2001 -From: Lumir Balhar -Date: Wed, 8 Jun 2022 10:58:16 +0200 -Subject: [PATCH] Fix test compatibility with Python 3.11 - ---- - ipywidgets/widgets/tests/test_interaction.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/ipywidgets/widgets/tests/test_interaction.py b/ipywidgets/widgets/tests/test_interaction.py -index 7d44098..9614e45 100644 ---- a/ipywidgets/widgets/tests/test_interaction.py -+++ b/ipywidgets/widgets/tests/test_interaction.py -@@ -703,7 +703,7 @@ def test_multiple_selection(): - - def test_interact_noinspect(): - a = u'hello' -- c = interactive(print, a=a) -+ c = interactive(dict, a=a) - w = c.children[0] - check_widget(w, - cls=widgets.Text, --- -2.36.1 - diff --git a/python-ipywidgets.spec b/python-ipywidgets.spec index 15be97b..212508d 100644 --- a/python-ipywidgets.spec +++ b/python-ipywidgets.spec @@ -1,11 +1,8 @@ -# Created by pyp2rpm-3.3.4 %global pypi_name ipywidgets -# Documentation is disabled because it requires jupyter-sphinx -%bcond_with doc Name: python-%{pypi_name} -Version: 7.7.0 -Release: 4%{?dist} +Version: 8.0.1 +Release: 1%{?dist} Summary: IPython HTML widgets for Jupyter License: BSD @@ -13,24 +10,7 @@ URL: http://ipython.org Source0: %{pypi_source} BuildArch: noarch -# Fix tests for Python 3.11 -# Proposed upstream: https://github.com/jupyter-widgets/ipywidgets/pull/3478 -Patch0: py3_11.patch - BuildRequires: python3-devel -BuildRequires: python3dist(setuptools) -BuildRequires: python3dist(ipython) -BuildRequires: python3dist(ipykernel) -BuildRequires: python3dist(ipython-genutils) -# Docs -%if %{with doc} -BuildRequires: python3dist(nbsphinx) -BuildRequires: python3dist(recommonmark) -BuildRequires: python3dist(sphinx) -%endif -# Tests -BuildRequires: python3dist(jsonschema) -BuildRequires: python3dist(pytest) %description Interactive HTML widgets for Jupyter notebooks and the IPython kernel. @@ -41,54 +21,35 @@ Summary: %{summary} %description -n python3-%{pypi_name} Interactive HTML widgets for Jupyter notebooks and the IPython kernel. -%if %{with doc} -%package -n python-%{pypi_name}-doc -Summary: ipywidgets documentation -%description -n python-%{pypi_name}-doc -Documentation for ipywidgets -%endif - %prep %autosetup -p1 -n %{pypi_name}-%{version} -sed -i "s/from distutils.core /from setuptools /" setup.py # Jupyterlab_widgets is a new dependency in ipywidgets 7.6 # and it contains code which enables widgets in Jupyter lab # not requiring any manual steps. But we don't have Jupyter lab # in Fedora yet so we do not need this package at all. -sed -i "/jupyterlab_widgets/d" setup.py +sed -i "/jupyterlab_widgets/d" setup.cfg +%generate_buildrequires +%pyproject_buildrequires -x test %build -%py3_build -%if %{with doc} -# generate html docs -PYTHONPATH=${PWD} sphinx-build-3 docs/source html -# remove the sphinx-build leftovers -rm -rf html/.{doctrees,buildinfo} -%endif +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files %{pypi_name} %check -# The skipped test is not compatible with Py 3.10 and was already -# removed upstream together with the related functionality. -# https://github.com/jupyter-widgets/ipywidgets/commit/372457b8cb1523ecd5120b508e2d9c3a5f43c2e8 -%pytest -k "not test_priority" +%pytest -%files -n python3-%{pypi_name} -%license LICENSE +%files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md -%{python3_sitelib}/%{pypi_name} -%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info - -%if %{with doc} -%files -n python-%{pypi_name}-doc -%doc html -%license LICENSE -%endif %changelog +* Mon Aug 22 2022 Lumír Balhar - 8.0.1-1 +- Update to 8.0.1 +Resolves: rhbz#2119307 + * Fri Jul 22 2022 Fedora Release Engineering - 7.7.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild diff --git a/sources b/sources index 8500c44..e980daf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ipywidgets-7.7.0.tar.gz) = 038da040912e6701762fb66fb3b6996ce0a59706afb05405b5932c02d34733842b227426f0b29eea115196bab384617425b0553c5db13a9dc832bddef63dfb92 +SHA512 (ipywidgets-8.0.1.tar.gz) = cb443734897f786a86a34ab6177d84e32d00155513c835756dc53a76b7201144e0cb34c3701c06b07df22de78f6d43973f4b9be456c3b4a22db39c16de4a4dc6