From 3de76d559f3b02bcb2edb89ddf9382a6647d086108e6ed450c89e26721e95f00 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Wed, 25 May 2022 23:12:26 +0000 Subject: [PATCH 1/3] Accepting request 979254 from home:andythe_great:branches:devel:languages:python:jupyter - Diable 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. * Bugs fixed * Check that channels exist before asking if they are alive #785 (@ccordoba12) * Unicode error correction using Error Handler #779 (@hxawax) * Maintenance and upkeep improvements * Allow bot PRs to be automatically labeled #784 (@blink1073) - Update for version 7.3.0 * Bugs fixed * Fix shutdown and cleanup behavior #772 (@blink1073) * Maintenance and upkeep improvements * Improve mypy config #769 (@blink1073) - Update for version 7.2.2 * Maintenance and upkeep improvements * Include py.typed file #766 (@blink1073) * More Cleanup #764 (@blink1073) - Update for version 7.2.1 * Maintenance and upkeep improvements * Handle Warnings #760 (@blink1073) - Update for version 7.2.0 * Enhancements made * Update consoleapp.py #733 (@you-n-g) * Bugs fixed * Json packer: handle TypeError and fallback to old json_clean #752 (@martinRenou) * Prefer sending signals to kernel process group #743 (@kevin-bates) * Maintenance and upkeep improvements * Mock is not needed #758 (@hroncok) * Add pytest opts and clean up workflows #757 (@blink1073) * Clean up dependency handling #750 (@blink1073) * Use built in run cancellation #742 (@blink1073) OBS-URL: https://build.opensuse.org/request/show/979254 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-client?expand=0&rev=17 --- jupyter_client-7.1.2.tar.gz | 3 --- jupyter_client-7.3.1.tar.gz | 3 +++ python-jupyter-client.changes | 39 +++++++++++++++++++++++++++++++++++ python-jupyter-client.spec | 15 +++++++------- 4 files changed, 50 insertions(+), 10 deletions(-) delete mode 100644 jupyter_client-7.1.2.tar.gz create mode 100644 jupyter_client-7.3.1.tar.gz diff --git a/jupyter_client-7.1.2.tar.gz b/jupyter_client-7.1.2.tar.gz deleted file mode 100644 index 7600b5f..0000000 --- a/jupyter_client-7.1.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4ea61033726c8e579edb55626d8ee2e6bf0a83158ddf3751b8dd46b2c5cd1e96 -size 326163 diff --git a/jupyter_client-7.3.1.tar.gz b/jupyter_client-7.3.1.tar.gz new file mode 100644 index 0000000..390caee --- /dev/null +++ b/jupyter_client-7.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05d4ff6a0ade25138c6bb0fbeac7ddc26b5fe835e7dd816b64b4a45b931bdc0b +size 328697 diff --git a/python-jupyter-client.changes b/python-jupyter-client.changes index a4d54b7..f970284 100644 --- a/python-jupyter-client.changes +++ b/python-jupyter-client.changes @@ -1,3 +1,42 @@ +------------------------------------------------------------------- +Wed May 25 15:01:01 UTC 2022 - andy great + +- Diable 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. + * Bugs fixed + * Check that channels exist before asking if they are alive + #785 (@ccordoba12) + * Unicode error correction using Error Handler #779 (@hxawax) + * Maintenance and upkeep improvements + * Allow bot PRs to be automatically labeled #784 (@blink1073) +- Update for version 7.3.0 + * Bugs fixed + * Fix shutdown and cleanup behavior #772 (@blink1073) + * Maintenance and upkeep improvements + * Improve mypy config #769 (@blink1073) +- Update for version 7.2.2 + * Maintenance and upkeep improvements + * Include py.typed file #766 (@blink1073) + * More Cleanup #764 (@blink1073) +- Update for version 7.2.1 + * Maintenance and upkeep improvements + * Handle Warnings #760 (@blink1073) +- Update for version 7.2.0 + * Enhancements made + * Update consoleapp.py #733 (@you-n-g) + * Bugs fixed + * Json packer: handle TypeError and fallback to old json_clean + #752 (@martinRenou) + * Prefer sending signals to kernel process group #743 + (@kevin-bates) + * Maintenance and upkeep improvements + * Mock is not needed #758 (@hroncok) + * Add pytest opts and clean up workflows #757 (@blink1073) + * Clean up dependency handling #750 (@blink1073) + * Use built in run cancellation #742 (@blink1073) + ------------------------------------------------------------------- Sun Mar 13 06:53:58 UTC 2022 - Ben Greiner diff --git a/python-jupyter-client.spec b/python-jupyter-client.spec index 792877d..8998746 100644 --- a/python-jupyter-client.spec +++ b/python-jupyter-client.spec @@ -27,7 +27,7 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-jupyter-client%{psuffix} -Version: 7.1.2 +Version: 7.3.1 Release: 0 Summary: Jupyter protocol implementation and client libraries License: BSD-3-Clause @@ -39,11 +39,11 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: jupyter-jupyter_client = %{version} Requires: python-entrypoints -Requires: python-jupyter-core >= 4.6.0 -Requires: python-nest-asyncio >= 1.5 -Requires: python-python-dateutil >= 2.1 -Requires: python-pyzmq >= 13 -Requires: python-tornado >= 4.1 +Requires: python-jupyter-core >= 4.9.2 +Requires: python-nest-asyncio >= 1.5.4 +Requires: python-python-dateutil >= 2.8.2 +Requires: python-pyzmq >= 22.3 +Requires: python-tornado >= 6.0 Requires: python-traitlets Provides: python-jupyter_client = %{version} Obsoletes: python-jupyter_client < %{version} @@ -102,7 +102,8 @@ This package provides the jupyter components. %if %{with test} %check pushd jupyter_client/tests -%pytest --force-flaky --max-runs=3 --no-success-flaky-report +# 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 popd %endif From cc5f779db2fd957e7102d2361d5473aff498ed21872c8ece7393dbae7df5ee8b Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Wed, 25 May 2022 23:19:29 +0000 Subject: [PATCH 2/3] - 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 --- jupyter-client-fix787-kernelwarningsfilter.patch | 13 +++++++++++++ python-jupyter-client.changes | 8 +++++++- python-jupyter-client.spec | 5 +++-- 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 jupyter-client-fix787-kernelwarningsfilter.patch 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 From acb6a552cf03c95b7e82724fd6e40fc468f6a1a4f1d4519904c78fd4c17ec16b Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Wed, 25 May 2022 23:21:23 +0000 Subject: [PATCH 3/3] fix patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-client?expand=0&rev=19 --- jupyter-client-fix787-kernelwarningsfilter.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyter-client-fix787-kernelwarningsfilter.patch b/jupyter-client-fix787-kernelwarningsfilter.patch index 3d43425..2c20695 100644 --- a/jupyter-client-fix787-kernelwarningsfilter.patch +++ b/jupyter-client-fix787-kernelwarningsfilter.patch @@ -10,4 +10,4 @@ + "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 + [tool.mypy]