Accepting request 1144659 from home:bnavigator:branches:devel:languages:python:jupyter
- Add jupyter_events-py312-taskname.patch because we patched gh#madzak/python-json-logger#183 OBS-URL: https://build.opensuse.org/request/show/1144659 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-events?expand=0&rev=18
This commit is contained in:
parent
b82f2197ab
commit
ef3a8e3c8d
48
jupyter_events-py312-taskname.patch
Normal file
48
jupyter_events-py312-taskname.patch
Normal file
@ -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
|
||||
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 6 15:15:02 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- 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 <code@bnavigator.de>
|
||||
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user