1
0

5 Commits

Author SHA256 Message Date
32bdadde13 Accepting request 1297165 from devel:languages:python:jupyter
- Update to 8.1.7
  * Dynamic widgets registry by @martinRenou in #3988
- Release 8.1.6
  * Fix lumino and lab packages pinning by @martinRenou in #3958
  * Typo fix by @david4096 in #3960
  * Update lables even without MatJax/TypeSetter by @DonJayamanne
    in #3962
  * Fix the new line when pressing enter in textarea widget by
    @brichet in #3982
  * Backward compatibility on processPhosphorMessage by
    @martinRenou in #3945
  * Include sourcemaps in npm tarballs by @manzt in #3978
  * Fix deprecation warning when importing the backend_inline by
    @emolinlu in #3984

- Update to 8.1.5

OBS-URL: https://build.opensuse.org/request/show/1297165
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ipywidgets?expand=0&rev=20
2025-08-03 11:37:57 +00:00
6ee5a86176 - Update to 8.1.7
* Dynamic widgets registry by @martinRenou in #3988
- Release 8.1.6
  * Fix lumino and lab packages pinning by @martinRenou in #3958
  * Typo fix by @david4096 in #3960
  * Update lables even without MatJax/TypeSetter by @DonJayamanne
    in #3962
  * Fix the new line when pressing enter in textarea widget by
    @brichet in #3982
  * Backward compatibility on processPhosphorMessage by
    @martinRenou in #3945
  * Include sourcemaps in npm tarballs by @manzt in #3978
  * Fix deprecation warning when importing the backend_inline by
    @emolinlu in #3984
- Update to 8.1.5

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipywidgets?expand=0&rev=53
2025-08-02 16:28:03 +00:00
1694b16bae Accepting request 1201256 from devel:languages:python:jupyter
- Update to 4.0.13
  * More Phosphor backward compatibility by @martinRenou in #3942
  ## New features
  * Allow interact to use basic type hint annotations by
    @corranwebster in #3908
  * Support horizontal orientation of radio buttons by
    @DonJayamanne in #3620
  ## Maintenance and bug fixes
  * Fix compatibility with pytest 8 by @frenzymadness in #3903
  * HTMLManager: Support both ipywidgets 7 and 8 models by
    @martinRenou in #3932
  * Make tests compatible with Python 3.13 by @frenzymadness in
    #3924
  * fix: get_metadata deprecated since traitlets 4.1 by
    @ManonMarchand in #3894
  * Phosphor widget backward compatibility fixes by @martinRenou in
    #3933
  * Remove confusing error message by @martinRenou in #3936
  * Fix wrong tag index in TagsInput when updated via python by
    @s-weigand in #3862
- Drop ipywidgets-pr3903-pytest.patch

OBS-URL: https://build.opensuse.org/request/show/1201256
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ipywidgets?expand=0&rev=19
2024-09-16 15:42:39 +00:00
d47ccb1cab - Drop ipywidgets-pr3903-pytest.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipywidgets?expand=0&rev=51
2024-09-15 15:56:14 +00:00
c0ddd65f0a - Update to 4.0.13
* More Phosphor backward compatibility by @martinRenou in #3942
  ## New features
  * Allow interact to use basic type hint annotations by
    @corranwebster in #3908
  * Support horizontal orientation of radio buttons by
    @DonJayamanne in #3620
  ## Maintenance and bug fixes
  * Fix compatibility with pytest 8 by @frenzymadness in #3903
  * HTMLManager: Support both ipywidgets 7 and 8 models by
    @martinRenou in #3932
  * Make tests compatible with Python 3.13 by @frenzymadness in
    #3924
  * fix: get_metadata deprecated since traitlets 4.1 by
    @ManonMarchand in #3894
  * Phosphor widget backward compatibility fixes by @martinRenou in
    #3933
  * Remove confusing error message by @martinRenou in #3936
  * Fix wrong tag index in TagsInput when updated via python by
    @s-weigand in #3862

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipywidgets?expand=0&rev=50
2024-09-15 15:55:24 +00:00
5 changed files with 52 additions and 102 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f5f9eeaae082b1823ce9eac2575272952f40d748893972956dc09700a6392d9c
size 116515

3
ipywidgets-8.1.7.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:15f1ac050b9ccbefd45dccfbb2ef6bed0029d8278682d569d71b8dd96bee0376
size 116721

View File

@@ -1,91 +0,0 @@
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):

View File

@@ -1,3 +1,46 @@
-------------------------------------------------------------------
Sat Aug 2 16:14:15 UTC 2025 - Ben Greiner <code@bnavigator.de>
- Update to 8.1.7
* Dynamic widgets registry by @martinRenou in #3988
- Release 8.1.6
* Fix lumino and lab packages pinning by @martinRenou in #3958
* Typo fix by @david4096 in #3960
* Update lables even without MatJax/TypeSetter by @DonJayamanne
in #3962
* Fix the new line when pressing enter in textarea widget by
@brichet in #3982
* Backward compatibility on processPhosphorMessage by
@martinRenou in #3945
* Include sourcemaps in npm tarballs by @manzt in #3978
* Fix deprecation warning when importing the backend_inline by
@emolinlu in #3984
-------------------------------------------------------------------
Sun Sep 15 15:49:33 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Update to 8.1.5
* More Phosphor backward compatibility by @martinRenou in #3942
## New features
* Allow interact to use basic type hint annotations by
@corranwebster in #3908
* Support horizontal orientation of radio buttons by
@DonJayamanne in #3620
## Maintenance and bug fixes
* Fix compatibility with pytest 8 by @frenzymadness in #3903
* HTMLManager: Support both ipywidgets 7 and 8 models by
@martinRenou in #3932
* Make tests compatible with Python 3.13 by @frenzymadness in
#3924
* fix: get_metadata deprecated since traitlets 4.1 by
@ManonMarchand in #3894
* Phosphor widget backward compatibility fixes by @martinRenou in
#3933
* Remove confusing error message by @martinRenou in #3936
* Fix wrong tag index in TagsInput when updated via python by
@s-weigand in #3862
- Drop ipywidgets-pr3903-pytest.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jul 12 15:35:21 UTC 2024 - Ben Greiner <code@bnavigator.de> Fri Jul 12 15:35:21 UTC 2024 - Ben Greiner <code@bnavigator.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-ipywidgets # spec file for package python-ipywidgets
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -17,15 +17,13 @@
Name: python-ipywidgets Name: python-ipywidgets
Version: 8.1.3 Version: 8.1.7
Release: 0 Release: 0
Summary: IPython HTML widgets for Jupyter Summary: IPython HTML widgets for Jupyter
License: BSD-3-Clause License: BSD-3-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/jupyter-widgets/ipywidgets URL: https://github.com/jupyter-widgets/ipywidgets
Source0: https://files.pythonhosted.org/packages/source/i/ipywidgets/ipywidgets-%{version}.tar.gz 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 base >= 3.7}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
@@ -36,8 +34,8 @@ BuildRequires: unzip
Requires: python-comm >= 0.1.3 Requires: python-comm >= 0.1.3
Requires: python-ipython >= 6.1.0 Requires: python-ipython >= 6.1.0
Requires: python-traitlets >= 4.3.1 Requires: python-traitlets >= 4.3.1
Requires: (python-jupyterlab_widgets >= 3.0.11 with python-jupyterlab_widgets < 4) Requires: (python-jupyterlab_widgets >= 3.0.15 with python-jupyterlab_widgets < 4)
Requires: (python-widgetsnbextension >= 4.0.11 with python-widgetsnbextension < 5) Requires: (python-widgetsnbextension >= 4.0.14 with python-widgetsnbextension < 5)
Provides: python-jupyter_ipywidgets = %{version} Provides: python-jupyter_ipywidgets = %{version}
Obsoletes: python-jupyter_ipywidgets < %{version} Obsoletes: python-jupyter_ipywidgets < %{version}
BuildArch: noarch BuildArch: noarch
@@ -46,11 +44,11 @@ BuildRequires: %{python_module comm >= 0.1.3}
BuildRequires: %{python_module ipykernel} BuildRequires: %{python_module ipykernel}
BuildRequires: %{python_module ipython >= 6.1.0} BuildRequires: %{python_module ipython >= 6.1.0}
BuildRequires: %{python_module jsonschema} BuildRequires: %{python_module jsonschema}
BuildRequires: %{python_module jupyterlab_widgets >= 3.0.11 with %python-jupyterlab_widgets < 4} BuildRequires: %{python_module jupyterlab_widgets >= 3.0.15 with %python-jupyterlab_widgets < 4}
BuildRequires: %{python_module pytest >= 3.6.0} BuildRequires: %{python_module pytest >= 3.6.0}
BuildRequires: %{python_module pytz} BuildRequires: %{python_module pytz}
BuildRequires: %{python_module traitlets >= 4.3.1} BuildRequires: %{python_module traitlets >= 4.3.1}
BuildRequires: %{python_module widgetsnbextension >= 4.0.11 with %python-widgetsnbextension < 5} BuildRequires: %{python_module widgetsnbextension >= 4.0.14 with %python-widgetsnbextension < 5}
# /SECTION # /SECTION
%if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3" %if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3"
Provides: jupyter-ipywidgets = %{version} Provides: jupyter-ipywidgets = %{version}