Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-anywidget for
openSUSE:Factory checked in at 2024-02-11 15:46:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-anywidget (Old)
and /work/SRC/openSUSE:Factory/.python-anywidget.new.1815 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-anywidget"
Sun Feb 11 15:46:07 2024 rev:7 rq:1145690 version:0.9.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-anywidget/python-anywidget.changes
2024-01-21 23:10:40.830588756 +0100
+++
/work/SRC/openSUSE:Factory/.python-anywidget.new.1815/python-anywidget.changes
2024-02-11 15:46:09.635940142 +0100
@@ -1,0 +2,21 @@
+Sat Feb 10 15:00:16 UTC 2024 - Ben Greiner <[email protected]>
+
+- Update to 0.9.0
+ * Require ANYWIDGET_HMR to opt-in to HMR during development
+ * Introduce front-end widget lifecycle methods (#395)
+ * Deprecation Notice: Exporting a render from the front-end
+ widget will trigger a deprecation notice in the browser
+ console. The preferred way to define a widget's front-end code
+ is now with a default object export.
+ * These methods introduce lifecycle hooks for widget developers:
+ - initialize: is executed once in the lifetime of a widget. It
+ has access to the only the model to setup non-view event
+ handlers or state to share across views.
+ - render: is executed once per view, or for each notebook
+ output cell. It has access to the model and a unique el DOM
+ element. This method should be familiar and is used to setup
+ event handlers or access state specific to that view.
+ * Fix serialization of layout trait (#426)
+- Add anywidget-pr439-py312mock.patch gh#manzt/anywidget#439
+
+-------------------------------------------------------------------
Old:
----
anywidget-0.8.1.tar.gz
New:
----
anywidget-0.9.0.tar.gz
anywidget-pr439-py312mock.patch
BETA DEBUG BEGIN:
New: * Fix serialization of layout trait (#426)
- Add anywidget-pr439-py312mock.patch gh#manzt/anywidget#439
BETA DEBUG END:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-anywidget.spec ++++++
--- /var/tmp/diff_new_pack.45ZQu3/_old 2024-02-11 15:46:10.303964160 +0100
+++ /var/tmp/diff_new_pack.45ZQu3/_new 2024-02-11 15:46:10.307964305 +0100
@@ -16,14 +16,16 @@
#
-%define distver 0.8.1
+%define distver 0.9
Name: python-anywidget
-Version: 0.8.1
+Version: 0.9.0
Release: 0
Summary: Custom jupyter widgets made easy
License: MIT
URL: https://github.com/manzt/anywidget
Source:
https://files.pythonhosted.org/packages/source/a/anywidget/anywidget-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM anywidget-pr439-py312mock.patch gh#manzt/anywidget#439
+Patch0: anywidget-pr439-py312mock.patch
BuildRequires: %{python_module hatch-jupyter-builder}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module jupyterlab >= 3}
++++++ anywidget-0.8.1.tar.gz -> anywidget-0.9.0.tar.gz ++++++
++++ 2602 lines of diff (skipped)
++++++ anywidget-pr439-py312mock.patch ++++++
>From 849495bc3fa5b5cc06a7eefaaf1ba17014192b1a Mon Sep 17 00:00:00 2001
From: Ben Greiner <[email protected]>
Date: Sat, 10 Feb 2024 16:24:16 +0100
Subject: [PATCH] Fix mocked assert
---
tests/test_widget.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_widget.py b/tests/test_widget.py
index f3456354..bfc1fd92 100644
--- a/tests/test_widget.py
+++ b/tests/test_widget.py
@@ -134,7 +134,7 @@ def test_patched_repr_ipywidget_v8(monkeypatch:
pytest.MonkeyPatch):
monkeypatch.setitem(sys.modules, "google.colab.output", mock)
w = anywidget.AnyWidget()
- assert mock.enable_custom_widget_manager.called_once
+ assert mock.enable_custom_widget_manager.assert_called_once
bundle = w._repr_mimebundle_()
assert bundle[0] and _WIDGET_MIME_TYPE in bundle[0]