Accepting request 1187204 from devel:languages:python:jupyter
- Update to 8.1.3 * Add support for widgets in JupyterLab code consoles by @jtpio in #3004 * Add return to pack_models by @gjmooney in #3923 - Add ipywidgets-pr3903-pytest.patch gh#jupyter-widgets/ipywidgets#3903 (forwarded request 1187203 from bnavigator) OBS-URL: https://build.opensuse.org/request/show/1187204 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ipywidgets?expand=0&rev=18
This commit is contained in:
commit
8c056b681a
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d0b9b41e49bae926a866e613a39b0f0097745d2b9f1f3dd406641b4a57ec42c9
|
||||
size 116492
|
3
ipywidgets-8.1.3.tar.gz
Normal file
3
ipywidgets-8.1.3.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f5f9eeaae082b1823ce9eac2575272952f40d748893972956dc09700a6392d9c
|
||||
size 116515
|
91
ipywidgets-pr3903-pytest.patch
Normal file
91
ipywidgets-pr3903-pytest.patch
Normal file
@ -0,0 +1,91 @@
|
||||
From bbc6c064aa797eb21bd5a9b441dbbc76925a72db Mon Sep 17 00:00:00 2001
|
||||
From: Lumir Balhar <lbalhar@redhat.com>
|
||||
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):
|
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 12 15:35:21 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to 8.1.3
|
||||
* Add support for widgets in JupyterLab code consoles by @jtpio
|
||||
in #3004
|
||||
* Add return to pack_models by @gjmooney in #3923
|
||||
- Add ipywidgets-pr3903-pytest.patch
|
||||
gh#jupyter-widgets/ipywidgets#3903
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 29 17:49:23 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
@ -16,15 +16,16 @@
|
||||
#
|
||||
|
||||
|
||||
%define skip_python39 1
|
||||
Name: python-ipywidgets
|
||||
Version: 8.1.2
|
||||
Version: 8.1.3
|
||||
Release: 0
|
||||
Summary: IPython HTML widgets for Jupyter
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/jupyter-widgets/ipywidgets
|
||||
Source0: https://files.pythonhosted.org/packages/source/i/ipywidgets/ipywidgets-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM ipywidgets-pr3903-pytest.patch gh#jupyter-widgets/ipywidgets#3903
|
||||
Patch0: ipywidgets-pr3903-pytest.patch
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@ -35,8 +36,8 @@ BuildRequires: unzip
|
||||
Requires: python-comm >= 0.1.3
|
||||
Requires: python-ipython >= 6.1.0
|
||||
Requires: python-traitlets >= 4.3.1
|
||||
Requires: (python-jupyterlab_widgets >= 3.0.10 with python-jupyterlab_widgets < 4)
|
||||
Requires: (python-widgetsnbextension >= 4.0.10 with python-widgetsnbextension < 5)
|
||||
Requires: (python-jupyterlab_widgets >= 3.0.11 with python-jupyterlab_widgets < 4)
|
||||
Requires: (python-widgetsnbextension >= 4.0.11 with python-widgetsnbextension < 5)
|
||||
Provides: python-jupyter_ipywidgets = %{version}
|
||||
Obsoletes: python-jupyter_ipywidgets < %{version}
|
||||
BuildArch: noarch
|
||||
@ -45,11 +46,11 @@ BuildRequires: %{python_module comm >= 0.1.3}
|
||||
BuildRequires: %{python_module ipykernel}
|
||||
BuildRequires: %{python_module ipython >= 6.1.0}
|
||||
BuildRequires: %{python_module jsonschema}
|
||||
BuildRequires: %{python_module jupyterlab_widgets >= 3.0.10 with %python-jupyterlab_widgets < 4}
|
||||
BuildRequires: %{python_module jupyterlab_widgets >= 3.0.11 with %python-jupyterlab_widgets < 4}
|
||||
BuildRequires: %{python_module pytest >= 3.6.0}
|
||||
BuildRequires: %{python_module pytz}
|
||||
BuildRequires: %{python_module traitlets >= 4.3.1}
|
||||
BuildRequires: %{python_module widgetsnbextension >= 4.0.10 with %python-widgetsnbextension < 5}
|
||||
BuildRequires: %{python_module widgetsnbextension >= 4.0.11 with %python-widgetsnbextension < 5}
|
||||
# /SECTION
|
||||
%if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3"
|
||||
Provides: jupyter-ipywidgets = %{version}
|
||||
|
Loading…
x
Reference in New Issue
Block a user