forked from pool/python-ipykernel
Compare commits
6 Commits
Author | SHA256 | Date | |
---|---|---|---|
8127ebaecb | |||
13e427300b | |||
b79b6bc70c | |||
73c31e65c3 | |||
2224718298 | |||
0745bd708d |
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,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>
|
Fri Aug 30 09:27:37 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@@ -24,6 +24,7 @@ Summary: IPython Kernel for Jupyter
|
|||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://github.com/ipython/ipykernel
|
URL: https://github.com/ipython/ipykernel
|
||||||
Source: https://files.pythonhosted.org/packages/source/i/ipykernel/ipykernel-%{version}.tar.gz
|
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}
|
Provides: python-jupyter_ipykernel = %{version}
|
||||||
Obsoletes: python-jupyter_ipykernel < %{version}
|
Obsoletes: python-jupyter_ipykernel < %{version}
|
||||||
Provides: %{python_module ipykernel-doc = %{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}}
|
Obsoletes: %{python_module jupyter_ipykernel-doc < %{version}}
|
||||||
Provides: %{python_module jupyter-ipykernel-doc = %{version}}
|
Provides: %{python_module jupyter-ipykernel-doc = %{version}}
|
||||||
Obsoletes: %{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
|
BuildArch: noarch
|
||||||
# SECTION build-system
|
# SECTION build-system
|
||||||
BuildRequires: %{python_module base >= 3.8}
|
BuildRequires: %{python_module base >= 3.8}
|
||||||
@@ -96,9 +101,6 @@ sed -i -e 's/, "--color=yes"//' pyproject.toml
|
|||||||
%install
|
%install
|
||||||
%pyproject_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
|
%{python_expand # install kernelspecs for each flavor
|
||||||
PYTHONPATH=%{buildroot}%{$python_sitelib}
|
PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||||
$python -m ipykernel install \
|
$python -m ipykernel install \
|
||||||
@@ -127,7 +129,7 @@ donttest="$donttest or test_do_apply"
|
|||||||
%{python_sitelib}/ipykernel-%{version}*-info
|
%{python_sitelib}/ipykernel-%{version}*-info
|
||||||
%pycache_only %{python_sitelib}/__pycache__/ipykernel_launcher*.pyc
|
%pycache_only %{python_sitelib}/__pycache__/ipykernel_launcher*.pyc
|
||||||
%{_jupyter_kernel_dir}/python%{python_bin_suffix}
|
%{_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
|
%{_jupyter_kernel_dir}/python3
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user