diff --git a/py313-warning.patch b/py313-warning.patch new file mode 100644 index 0000000..c93d8f5 --- /dev/null +++ b/py313-warning.patch @@ -0,0 +1,22 @@ +From b47db6f082ea61e9688b4eca4e92529c1e0e6c45 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= +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 diff --git a/python-ipykernel.changes b/python-ipykernel.changes index 8e55be7..56ef95b 100644 --- a/python-ipykernel.changes +++ b/python-ipykernel.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Oct 28 11:39:45 UTC 2024 - Dirk Müller + +- add py313-warning.patch + ------------------------------------------------------------------- Wed Sep 25 12:42:14 UTC 2024 - Ben Greiner diff --git a/python-ipykernel.spec b/python-ipykernel.spec index 325410d..9bf704c 100644 --- a/python-ipykernel.spec +++ b/python-ipykernel.spec @@ -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}}