1
0

37 Commits

Author SHA256 Message Date
95e4a8dc2e Accepting request 1248992 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/1248992
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=35
2025-02-27 15:40:36 +00:00
25f766de22 - Add %{?sle15_python_module_pythons}
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbclient?expand=0&rev=72
2025-02-27 12:59:04 +00:00
e38468cb6c Accepting request 1225678 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/1225678
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=34
2024-11-24 10:04:05 +00:00
8bee97b25c - Remove color from logs.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbclient?expand=0&rev=70
2024-11-21 22:31:52 +00:00
f8c4c65958 - Add nbclient-pr315-date-deprecation.patch
* Avoids DeprecationWarning when importing
  * gh#jupyter/nbclient#315 gh#jupyter/nbclient#318 
- Add nbclient-pr317-py313tests.patch gh#jupyter/nbclient#317
  * make tests more lenient

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbclient?expand=0&rev=69
2024-11-21 19:13:26 +00:00
d0a2bf4fdc Accepting request 1183266 from devel:languages:python:jupyter
- Remove upper bound on pytest.

OBS-URL: https://build.opensuse.org/request/show/1183266
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=33
2024-06-27 14:00:40 +00:00
3e0b1cafb7 Accepting request 1163579 from devel:languages:python:jupyter
- Update to 0.10.0
  * Optionally write out executed notebook in jupyter-execute #307
    (@wpk-nist-gov)

OBS-URL: https://build.opensuse.org/request/show/1163579
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=32
2024-04-02 14:40:40 +00:00
caa246f6f2 Accepting request 1155948 from devel:languages:python:jupyter
- Skip testing with python39: no longer supported since ipython 8.19

OBS-URL: https://build.opensuse.org/request/show/1155948
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=31
2024-03-07 17:31:24 +00:00
5e73d91de0 Accepting request 1128960 from devel:languages:python:jupyter
- Update to 0.9.0
  * Maintenance and upkeep improvements

OBS-URL: https://build.opensuse.org/request/show/1128960
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=30
2023-11-27 21:43:01 +00:00
4bd176f421 Accepting request 1092364 from devel:languages:python:jupyter
- Update to 0.8.0
  * Bump min version support #287 (@blink1073) (forwarded request 1092363 from bnavigator)

OBS-URL: https://build.opensuse.org/request/show/1092364
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=29
2023-06-12 13:26:10 +00:00
bbb32ea6d9 Accepting request 1083889 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/1083889
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=28
2023-05-02 14:18:45 +00:00
0cbbdd9261 Accepting request 1082321 from devel:languages:python:jupyter
- Update to 0.7.3
  * Add coalesce_streams #279 (@davidbrochart) (forwarded request 1082320 from bnavigator)

OBS-URL: https://build.opensuse.org/request/show/1082321
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=27
2023-04-24 20:31:07 +00:00
75f14b03b2 - Update to 0.7.2
* Allow space after In #264 (@davidbrochart)
  * Fix jupyter_core pinning #263 (@davidbrochart)
  * Update README, add Python 3.11 #260 (@davidbrochart)
- Release 0.7.1
  * Remove nest-asyncio #259 (@davidbrochart)
- Use PEP517 hatchling build

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=26
2023-01-08 20:25:51 +00:00
f78f48abaa Accepting request 1009183 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/1009183
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=25
2022-10-12 16:23:52 +00:00
54a7a75eeb Accepting request 1002372 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/1002372
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=24
2022-09-10 18:17:23 +00:00
d3382c1509 Accepting request 999713 from devel:languages:python:jupyter
- Update to 0.6.7
  * Fix tests for ipywidgets 8 #246 (@frenzymadness)

OBS-URL: https://build.opensuse.org/request/show/999713
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=23
2022-08-29 07:42:54 +00:00
c905e17fbd Accepting request 988045 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/988045
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=22
2022-07-10 21:15:25 +00:00
7fb3838946 Accepting request 980915 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/980915
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=21
2022-06-07 09:45:02 +00:00
882ccda263 Accepting request 961182 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/961182
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=20
2022-03-12 16:15:24 +00:00
031a6cef9e Accepting request 960707 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/960707
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=19
2022-03-10 21:45:26 +00:00
ff25b39146 Accepting request 958022 from devel:languages:python:jupyter
- Skip more failing tests due to new Exception message format

OBS-URL: https://build.opensuse.org/request/show/958022
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=18
2022-02-28 18:43:46 +00:00
d8acdb5860 Accepting request 955826 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/955826
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=17
2022-02-18 22:03:02 +00:00
7883f79410 Accepting request 947047 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/947047
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=16
2022-01-17 21:34:30 +00:00
cad565c79e Accepting request 946703 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/946703
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=15
2022-01-15 20:45:21 +00:00
ca75ebcaa8 Accepting request 944954 from devel:languages:python:jupyter
- Do not build on SLE/Leap <= 15.3

OBS-URL: https://build.opensuse.org/request/show/944954
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=14
2022-01-08 22:24:26 +00:00
7f3111dd5c Accepting request 932813 from devel:languages:python:jupyter
- Deselect all 4 flaky parallel_notebooks tests

OBS-URL: https://build.opensuse.org/request/show/932813
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=13
2021-11-21 22:52:22 +00:00
05dd3e5c18 Accepting request 932512 from devel:languages:python:jupyter
- Update to version 0.5.9
  * Remove jupyter-run, keep jupyter-execute #180 (@davidbrochart)
- Switch to libalternatives (forwarded request 932511 from bnavigator)

OBS-URL: https://build.opensuse.org/request/show/932512
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=12
2021-11-20 01:39:18 +00:00
51c2984b81 Accepting request 931395 from devel:languages:python:jupyter
- Update to version 0.5.8
  * Prepare for use with Jupyter Releaser #175 (@davidbrochart)
  * Move IPYKERNEL_CELL_NAME from tox to pytest #172
    (@frenzymadness)
  * Added CLI to README #170 (@palewire)
  * Add "jupyter execute" command-line interface #165 (@palewire)
  * Fix: updating buffers overwrote previous buffers #169
    (@maartenbreddels)
  * Fix tests for ipykernel without debugpy #166 (@frenzymadness)
  * gitignore Pipfile #164 (@palewire)
  * Fixed CONTRIBUTING.md link #163 (@palewire)
  * Fix typo #162 (@The-Compiler)
  * Move format & lint to pre-commit #161 (@chrisjsewell)
  * Add skip-execution cell tag functionality #151 (@chrisjsewell)
- Not enabling new jupyter-run entrypoint due to conflict with
  jupyter_client (forwarded request 931394 from bnavigator)

OBS-URL: https://build.opensuse.org/request/show/931395
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=11
2021-11-15 14:26:40 +00:00
48a438c324 Accepting request 921032 from devel:languages:python:jupyter
- Fix async_parallel_notebooks deselection expression
- Add IPYKERNEL_CELL_NAME env var for test sanitization
- Only require async_generator for Python < 3.7
- update to version 0.5.4:
  * Replace km.cleanup with km.cleanup_resources #152 (@davidbrochart)
  * Use async generator backport only on old python #154 (@mkoeppe)
  * Support parsing of IPython dev version #150 (@cphyc)
  * Set IPYKERNEL_CELL_NAME = <IPY-INPUT> #147 (@davidbrochart)
  * Print useful error message on exception #142 (@certik)

OBS-URL: https://build.opensuse.org/request/show/921032
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=10
2021-09-23 21:03:54 +00:00
4c29d65302 Accepting request 884008 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/884008
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=9
2021-04-10 13:27:01 +00:00
82d11fa442 Accepting request 877784 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/877784
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=8
2021-03-10 07:56:48 +00:00
cd280a9259 Accepting request 872454 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/872454
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=7
2021-02-15 22:20:23 +00:00
af9a81dfde Accepting request 851357 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/851357
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=6
2020-11-29 11:30:30 +00:00
904107d213 Accepting request 839744 from devel:languages:python:jupyter
- specfile:
  * update required version
- update to version 0.5.0:
  * Move language_info retrieval before cell execution #102
  * HistoryManager setting for ipython kernels no longer applies twice
    (fix for 5.0 trailets release)
  * Improved error handling around language_info missing
    (async_)start_new_kernel_client is now split into (async_)start_new_kernel and (async_)start_new_kernel_client
- update to version 0.4.1:
  * Python type hinting added to most interfaces! #83
  * Several documentation fixes and improvements were made #86
  * An asynchronous heart beat check was added to correctly raise a
    DeadKernelError when kernels die unexpectantly #90

OBS-URL: https://build.opensuse.org/request/show/839744
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=5
2020-10-06 15:12:51 +00:00
cdf032d14d Accepting request 817911 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/817911
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=4
2020-07-01 12:26:42 +00:00
0dc2ed031a Accepting request 812836 from devel:languages:python:jupyter
- Update to 0.3.1:
  * The (async_)start_new_kernel_client method now supports starting a new client when its kernel manager (self.km) is a MultiKernelManager. The method now returns the kernel id in addition to the kernel client. If the kernel manager was a KernelManager, the returned kernel id is None. #51
  * Added reset_kc option to reset_execution_trackers, so that the kernel client can be reset and a new one created in calls to (async_)execute #44
  * Check that a kernel manager exists before cleaning up the kernel #61
  * Force client class to be async when kernel manager is MultiKernelManager #55
  * Replace pip install with conda install in Binder #54

OBS-URL: https://build.opensuse.org/request/show/812836
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=3
2020-06-09 22:50:17 +00:00
3a6396ab79 Accepting request 808511 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/808511
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbclient?expand=0&rev=2
2020-05-26 15:21:50 +00:00
4 changed files with 101 additions and 1 deletions

View File

@ -0,0 +1,40 @@
From eb6aa1fe35a2e7e9d22a7bdba82fd1c7894ac243 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
Date: Mon, 10 Jun 2024 17:08:06 +0200
Subject: [PATCH] Avoid a DeprecationWarning on Python 3.13+
...
/usr/lib/python3.13/site-packages/nbclient/jsonutil.py:29: in <module>
datetime.strptime("1", "%d")
/usr/lib64/python3.13/_strptime.py:573: in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
/usr/lib64/python3.13/_strptime.py:336: in _strptime
format_regex = _TimeRE_cache.compile(format)
/usr/lib64/python3.13/_strptime.py:282: in compile
return re_compile(self.pattern(format), IGNORECASE)
/usr/lib64/python3.13/_strptime.py:270: in pattern
warnings.warn("""\
E DeprecationWarning: Parsing dates involving a day of month without a year specified is ambiguious
E and fails to parse leap day. The default behavior will change in Python 3.15
E to either always raise an exception or to use a different default year (TBD).
E To avoid trouble, add a specific year to the input & format.
E See https://github.com/python/cpython/issues/70647.
See also https://github.com/jupyter/jupyter_client/issues/1020
---
nbclient/jsonutil.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nbclient/jsonutil.py b/nbclient/jsonutil.py
index bad0dae..0cd1236 100644
--- a/nbclient/jsonutil.py
+++ b/nbclient/jsonutil.py
@@ -26,7 +26,7 @@
# holy crap, strptime is not threadsafe.
# Calling it once at import seems to help.
-datetime.strptime("1", "%d")
+datetime.strptime("2000-01-01", "%Y-%m-%d")
# -----------------------------------------------------------------------------
# Classes and functions

View File

@ -0,0 +1,35 @@
From 57222265bfd8bdcf8851997e1dce5cd564e1a573 Mon Sep 17 00:00:00 2001
From: Lumir Balhar <lbalhar@redhat.com>
Date: Wed, 3 Jul 2024 14:21:41 +0200
Subject: [PATCH] Fix compatibility with Python 3.13 beta 2
There are more calls in 3.13 than in previous versions
so the tests are now more permissive.
Fixes: https://github.com/jupyter/nbclient/issues/316
---
tests/test_cli.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/test_cli.py b/tests/test_cli.py
index 04b9887..55ccbd6 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -60,7 +60,7 @@ def test_mult(input_names, relative, inplace, jupyterapp, client, reader, writer
# add suffix if needed
paths = [p.with_suffix(".ipynb") for p in paths]
- assert path_open.mock_calls[::3] == [call(p) for p in paths]
+ assert all(call(p) in path_open.mock_calls for p in paths)
assert reader.call_count == len(paths)
# assert reader.mock_calls == [call(p, as_version=4) for p in paths]
@@ -114,7 +114,7 @@ def test_output(input_names, relative, output_base, jupyterapp, client, reader,
# add suffix if needed
paths = [p.with_suffix(".ipynb") for p in paths]
- assert path_open.mock_calls[::3] == [call(p) for p in paths]
+ assert all(call(p) in path_open.mock_calls for p in paths)
assert reader.call_count == len(paths)
expected = []

View File

@ -1,3 +1,22 @@
-------------------------------------------------------------------
Thu Feb 27 12:54:52 UTC 2025 - ecsos <ecsos@opensuse.org>
- Add %{?sle15_python_module_pythons}
-------------------------------------------------------------------
Thu Nov 21 22:28:41 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Remove color from logs.
-------------------------------------------------------------------
Thu Nov 21 18:57:39 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Add nbclient-pr315-date-deprecation.patch
* Avoids DeprecationWarning when importing
* gh#jupyter/nbclient#315 gh#jupyter/nbclient#318
- Add nbclient-pr317-py313tests.patch gh#jupyter/nbclient#317
* make tests more lenient
-------------------------------------------------------------------
Wed Jun 26 01:36:57 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@ -31,6 +31,8 @@
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-nbclient%{psuffix}
Version: 0.10.0
Release: 0
@ -38,6 +40,10 @@ Summary: A client library for executing notebooks
License: BSD-3-Clause
URL: https://github.com/jupyter/nbclient
Source: https://files.pythonhosted.org/packages/source/n/nbclient/nbclient-%{version}.tar.gz
# PATCH-FIX-UPSTREAM nbclient-pr315-date-deprecation.patch gh#jupyter/nbclient#315 gh#jupyter/nbclient#318
Patch0: nbclient-pr315-date-deprecation.patch
# PATCH-FIX-UPSTREAM nbclient-pr317-py313tests.patch gh#jupyter/nbclient#317
Patch1: nbclient-pr317-py313tests.patch
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module hatchling >= 1.10.0}
BuildRequires: %{python_module pip}
@ -76,7 +82,7 @@ ExecutePreprocessor.
NBClient is a tool for parameterizing andexecuting Jupyter Notebooks.
%prep
%setup -q -n nbclient-%{version}
%autosetup -p1 -n nbclient-%{version}
sed -i 's/, "--color=yes"//' pyproject.toml
%if ! %{with test}