Accepting request 1218795 from devel:languages:python:jupyter
- add py313-warning.patch OBS-URL: https://build.opensuse.org/request/show/1218795 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ipykernel?expand=0&rev=52
This commit is contained in:
commit
8127ebaecb
22
py313-warning.patch
Normal file
22
py313-warning.patch
Normal file
@ -0,0 +1,22 @@
|
||||
From b47db6f082ea61e9688b4eca4e92529c1e0e6c45 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
||||
Date: Mon, 1 Jul 2024 15:37:07 +0200
|
||||
Subject: [PATCH] Avoid a DeprecationWarning on Python 3.13+ (#1248)
|
||||
|
||||
---
|
||||
ipykernel/jsonutil.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/ipykernel/jsonutil.py b/ipykernel/jsonutil.py
|
||||
index 6a463cf1..e45f06e5 100644
|
||||
--- a/ipykernel/jsonutil.py
|
||||
+++ b/ipykernel/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
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 28 11:39:45 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- add py313-warning.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 25 12:42:14 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
@ -24,6 +24,7 @@ Summary: IPython Kernel for Jupyter
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/ipython/ipykernel
|
||||
Source: https://files.pythonhosted.org/packages/source/i/ipykernel/ipykernel-%{version}.tar.gz
|
||||
Patch1: https://github.com/ipython/ipykernel/commit/b47db6f082ea61e9688b4eca4e92529c1e0e6c45.patch#/py313-warning.patch
|
||||
Provides: python-jupyter_ipykernel = %{version}
|
||||
Obsoletes: python-jupyter_ipykernel < %{version}
|
||||
Provides: %{python_module ipykernel-doc = %{version}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user