diff --git a/jupyter_events-py312-taskname.patch b/jupyter_events-py312-taskname.patch new file mode 100644 index 0000000..9379b28 --- /dev/null +++ b/jupyter_events-py312-taskname.patch @@ -0,0 +1,48 @@ +diff -ur jupyter_events-0.9.0.orig/tests/test_logger.py jupyter_events-0.9.0/tests/test_logger.py +--- jupyter_events-0.9.0.orig/tests/test_logger.py 2024-02-06 16:12:31.070657567 +0100 ++++ jupyter_events-0.9.0/tests/test_logger.py 2024-02-06 16:13:51.287692498 +0100 +@@ -165,8 +165,6 @@ + "__metadata_version__": 1, + "something": "blah", + } +- if sys.version_info >= (3, 12): +- expected["taskName"] = None + assert event_capsule == expected + + +@@ -213,8 +211,6 @@ + "something": "blah", + "message": "a message was seen", + } +- if sys.version_info >= (3, 12): +- expected["taskName"] = None + assert event_capsule == expected + + +@@ -262,8 +258,6 @@ + "__metadata_version__": 1, + "thing": {"message": "a nested message was seen"}, + } +- if sys.version_info >= (3, 12): +- expected["taskName"] = None + assert event_capsule == expected + + +@@ -427,8 +421,6 @@ + "__metadata_version__": 1, + "something": "blah", + } +- if sys.version_info >= (3, 12): +- expected["taskName"] = None + assert event_capsule0 == expected + + event_capsule1 = json.loads(output1.getvalue()) +@@ -442,8 +434,6 @@ + "__metadata_version__": 1, + "something": "blah", + } +- if sys.version_info >= (3, 12): +- expected["taskName"] = None + assert event_capsule1 == expected + + diff --git a/python-jupyter-events.changes b/python-jupyter-events.changes index 3c38496..0a46ac7 100644 --- a/python-jupyter-events.changes +++ b/python-jupyter-events.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 6 15:15:02 UTC 2024 - Ben Greiner + +- Add jupyter_events-py312-taskname.patch because we patched + gh#madzak/python-json-logger#183 + ------------------------------------------------------------------- Sun Nov 26 16:05:33 UTC 2023 - Ben Greiner diff --git a/python-jupyter-events.spec b/python-jupyter-events.spec index 0e55d7c..2584035 100644 --- a/python-jupyter-events.spec +++ b/python-jupyter-events.spec @@ -1,7 +1,7 @@ # # spec file for package python-jupyter-events # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -30,6 +30,8 @@ Summary: Jupyter Event System library License: BSD-3-Clause URL: https://github.com/jupyter/jupyter_events Source: https://files.pythonhosted.org/packages/source/j/jupyter_events/jupyter_events-%{version}.tar.gz +# PATCH-FIX-OPENSUSE jupyter_events-py312-taskname.patch code@bnavigator.de -- we patched python-python-json-logger with gh#madzak/python-json-logger#183 +Patch0: jupyter_events-py312-taskname.patch BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module hatchling >= 1.5} BuildRequires: %{python_module pip} @@ -51,7 +53,7 @@ BuildRequires: alts Requires: alts %else Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives %endif # SECTION test requirements BuildRequires: %{python_module rfc3339-validator}