- Add jupyter-client-fix787-kernelwarningsfilter.patch

* gh#jupyter/jupyter_client#787 
- Disable pytest for signalkernel.py and problemkernel.py because

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-client?expand=0&rev=18
This commit is contained in:
Benjamin Greiner 2022-05-25 23:19:29 +00:00 committed by Git OBS Bridge
parent 3de76d559f
commit cc5f779db2
3 changed files with 23 additions and 3 deletions

View File

@ -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]

View File

@ -1,7 +1,13 @@
-------------------------------------------------------------------
Wed May 25 23:15:53 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Add jupyter-client-fix787-kernelwarningsfilter.patch
* gh#jupyter/jupyter_client#787
-------------------------------------------------------------------
Wed May 25 15:01:01 UTC 2022 - andy great <andythe_great@pm.me>
- 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.

View File

@ -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