Accepting request 993332 from devel:languages:python:jupyter
- Add ipython-pr13714-xxlimited.patch gh#ipython/ipython#13714 - Remove nbformat from the :test flavor. Run locally `--with localtests` for not skipping the tests. OBS-URL: https://build.opensuse.org/request/show/993332 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ipython?expand=0&rev=32
This commit is contained in:
commit
3edd802af6
28
ipython-pr13714-xxlimited.patch
Normal file
28
ipython-pr13714-xxlimited.patch
Normal file
@ -0,0 +1,28 @@
|
||||
From d858213d4088237e1481038865bc52ccdd074053 Mon Sep 17 00:00:00 2001
|
||||
From: Lumir Balhar <lbalhar@redhat.com>
|
||||
Date: Fri, 29 Jul 2022 08:48:59 +0200
|
||||
Subject: [PATCH] xxlimited_35 module now has the same name in repr in Py 3.11
|
||||
|
||||
See https://github.com/python/cpython/commit/a87c9b538fbfc42883417c4d5e69f1a5922690e3
|
||||
---
|
||||
IPython/lib/tests/test_pretty.py | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/IPython/lib/tests/test_pretty.py b/IPython/lib/tests/test_pretty.py
|
||||
index 86085166071..b93ab97eb9e 100644
|
||||
--- a/IPython/lib/tests/test_pretty.py
|
||||
+++ b/IPython/lib/tests/test_pretty.py
|
||||
@@ -141,9 +141,12 @@ def test_pprint_heap_allocated_type():
|
||||
Test that pprint works for heap allocated types.
|
||||
"""
|
||||
module_name = "xxlimited" if sys.version_info < (3, 10) else "xxlimited_35"
|
||||
+ expected_output = (
|
||||
+ "xxlimited.Null" if sys.version_info < (3, 10, 6) else "xxlimited_35.Null"
|
||||
+ )
|
||||
xxlimited = pytest.importorskip(module_name)
|
||||
output = pretty.pretty(xxlimited.Null)
|
||||
- assert output == "xxlimited.Null"
|
||||
+ assert output == expected_output
|
||||
|
||||
|
||||
def test_pprint_nomod():
|
@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 5 13:54:20 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Add ipython-pr13714-xxlimited.patch gh#ipython/ipython#13714
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 4 10:24:27 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Remove nbformat from the :test flavor. Run locally
|
||||
`--with localtests` for not skipping the tests.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 4 23:13:12 UTC 2022 - Arun Persaud <arun@gmx.de>
|
||||
|
||||
|
@ -24,13 +24,15 @@
|
||||
%define psuffix %{nil}
|
||||
%bcond_with test
|
||||
%endif
|
||||
%{?!python_module:%define python_module() python3-%{**}}
|
||||
%define skip_python2 1
|
||||
# extra tests are skipped automatically, don't require these packages for Ring1
|
||||
%bcond_with localtest
|
||||
|
||||
%if 0%{?suse_version} > 1500
|
||||
%bcond_without libalternatives
|
||||
%else
|
||||
%bcond_with libalternatives
|
||||
%endif
|
||||
|
||||
Name: python-ipython%{psuffix}
|
||||
Version: 8.4.0
|
||||
Release: 0
|
||||
@ -40,6 +42,8 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/ipython/ipython
|
||||
Source: https://files.pythonhosted.org/packages/source/i/ipython/ipython-%{version}.tar.gz
|
||||
Source1: https://raw.githubusercontent.com/jupyter/qtconsole/4.0.0/qtconsole/resources/icon/JupyterConsole.svg
|
||||
# PATCH-FIX-UPSTREAM ipython-pr13714-xxlimited.patch gh#ipython/ipython#13714
|
||||
Patch0: ipython-pr13714-xxlimited.patch
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module setuptools >= 18.5}
|
||||
BuildRequires: %{pythons}
|
||||
@ -83,7 +87,6 @@ BuildArch: noarch
|
||||
BuildRequires: %{python_module curio}
|
||||
BuildRequires: %{python_module ipython = %{version}}
|
||||
BuildRequires: %{python_module matplotlib}
|
||||
BuildRequires: %{python_module nbformat}
|
||||
BuildRequires: %{python_module numpy >= 1.19}
|
||||
BuildRequires: %{python_module pandas}
|
||||
BuildRequires: %{python_module pygments}
|
||||
@ -92,6 +95,9 @@ BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module testpath}
|
||||
BuildRequires: %{python_module trio}
|
||||
%endif
|
||||
%if %{with localtest}
|
||||
BuildRequires: %{python_module nbformat}
|
||||
%endif
|
||||
%if !%{with test}
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: hicolor-icon-theme
|
||||
|
Loading…
Reference in New Issue
Block a user