1
0

6 Commits

Author SHA256 Message Date
8127ebaecb 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
2024-10-29 13:32:02 +00:00
13e427300b - add py313-warning.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipykernel?expand=0&rev=115
2024-10-28 11:41:51 +00:00
b79b6bc70c Accepting request 1203615 from devel:languages:python:jupyter
- The command replacement for kernelspec python3 was inactive since
  v6.13. A plain python command is transformed correctly by the
  calling interpreter.
- Conflict with old Python 3.6 package on SLE/Leap for python3
  kernelspec

OBS-URL: https://build.opensuse.org/request/show/1203615
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ipykernel?expand=0&rev=51
2024-09-26 16:52:38 +00:00
73c31e65c3 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipykernel?expand=0&rev=113 2024-09-25 14:35:45 +00:00
2224718298 - The command replacement for kernelspec python3 was inactive since
v6.13. A plain python command is transformed correctly by the
  calling interpreter.
- Conflict with old Python 3.6 package on SLE/Leap for python3
  kernelspec

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipykernel?expand=0&rev=112
2024-09-25 13:01:20 +00:00
0745bd708d - Always install the python3 kernelspec. The command replacement
was inactive since v6.13. A plain python command is transformed
  correctly by the calling interpreter.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipykernel?expand=0&rev=111
2024-09-25 12:50:59 +00:00
3 changed files with 42 additions and 4 deletions

22
py313-warning.patch Normal file
View 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

View File

@@ -1,3 +1,17 @@
-------------------------------------------------------------------
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>
- The command replacement for kernelspec python3 was inactive since
v6.13. A plain python command is transformed correctly by the
calling interpreter.
- Conflict with old Python 3.6 package on SLE/Leap for python3
kernelspec
-------------------------------------------------------------------
Fri Aug 30 09:27:37 UTC 2024 - Ben Greiner <code@bnavigator.de>

View File

@@ -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}}
@@ -32,6 +33,10 @@ Provides: %{python_module jupyter_ipykernel-doc = %{version}}
Obsoletes: %{python_module jupyter_ipykernel-doc < %{version}}
Provides: %{python_module jupyter-ipykernel-doc = %{version}}
Obsoletes: %{python_module jupyter-ipykernel-doc < %{version}}
%if %{suse_version} < 1600
# python311-ipykernel and python3-ipykernel cannot both provide the kernelspec
Conflicts: python3-ipykernel
%endif
BuildArch: noarch
# SECTION build-system
BuildRequires: %{python_module base >= 3.8}
@@ -96,9 +101,6 @@ sed -i -e 's/, "--color=yes"//' pyproject.toml
%install
%pyproject_install
# use the symlink for the default python3 flavor, which was installed during the install but used python3.X name
# from the primary flavor.
sed -i "s|$(readlink -f python3)|python3|" %{buildroot}%{_jupyter_kernel_dir}/python3/kernel.json
%{python_expand # install kernelspecs for each flavor
PYTHONPATH=%{buildroot}%{$python_sitelib}
$python -m ipykernel install \
@@ -127,7 +129,7 @@ donttest="$donttest or test_do_apply"
%{python_sitelib}/ipykernel-%{version}*-info
%pycache_only %{python_sitelib}/__pycache__/ipykernel_launcher*.pyc
%{_jupyter_kernel_dir}/python%{python_bin_suffix}
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3" || 0%{?suse_version} < 1600
%{_jupyter_kernel_dir}/python3
%endif