diff --git a/jupyter-client-fix787-kernelwarningsfilter.patch b/jupyter-client-fix787-kernelwarningsfilter.patch new file mode 100644 index 0000000..3d43425 --- /dev/null +++ b/jupyter-client-fix787-kernelwarningsfilter.patch @@ -0,0 +1,13 @@ +--- jupyter-client.orig/pyproject.toml ++++ jupyter-client/pyproject.toml +@@ -53,6 +53,10 @@ + # We could eventually find a way to make sure these are only created + # when there is a running event loop. + "ignore:There is no current event loop:DeprecationWarning:zmq", ++ ++ # workaround for deprecated modules ++ "ignore:the imp module is deprecated in favour of importlib:DeprecationWarning", ++ "ignore:The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives" + ] + + [tool.mypy] \ No newline at end of file diff --git a/python-jupyter-client.changes b/python-jupyter-client.changes index f970284..69aa3a2 100644 --- a/python-jupyter-client.changes +++ b/python-jupyter-client.changes @@ -1,7 +1,13 @@ +------------------------------------------------------------------- +Wed May 25 23:15:53 UTC 2022 - Ben Greiner + +- Add jupyter-client-fix787-kernelwarningsfilter.patch + * gh#jupyter/jupyter_client#787 + ------------------------------------------------------------------- Wed May 25 15:01:01 UTC 2022 - andy great -- Diable pytest for signalkernel.py and problemkernel.py because +- Disable pytest for signalkernel.py and problemkernel.py because issue with newer ipykernel. https://github.com/jupyter/jupyter_client/issues/787 - Update to version 7.3.1. diff --git a/python-jupyter-client.spec b/python-jupyter-client.spec index 8998746..4b68cfb 100644 --- a/python-jupyter-client.spec +++ b/python-jupyter-client.spec @@ -34,6 +34,8 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/jupyter/jupyter_client Source: https://files.pythonhosted.org/packages/source/j/jupyter_client/jupyter_client-%{version}.tar.gz +# PATCH-FIX-UPSTREAM +Patch0: jupyter-client-fix787-kernelwarningsfilter.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -102,8 +104,7 @@ This package provides the jupyter components. %if %{with test} %check pushd jupyter_client/tests -# disable signalkernel.py and problemkernel.py due to newer ipykernel https://github.com/jupyter/jupyter_client/issues/787 -%pytest --force-flaky --max-runs=3 --no-success-flaky-report --ignore signalkernel.py --ignore problemkernel.py +%pytest --force-flaky --max-runs=3 --no-success-flaky-report popd %endif