1
0

16 Commits

Author SHA256 Message Date
8331d44461 Accepting request 1297454 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/1297454
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ipython?expand=0&rev=55
2025-08-06 12:31:15 +00:00
57807aeb62 - Add upstream pytest-warnings.patch to fix tests with pytest 8.4+
- tests actually use pytest-asyncio, otherwise they break even with
  the patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipython?expand=0&rev=147
2025-08-04 10:13:11 +00:00
b1e95704d3 Accepting request 1294230 from devel:languages:python:jupyter
- skip deprecation warnings

    (see #14620) but should be sufficient for now.
  * improve the documentatation for custom IPython formatters, and how
  * fix a bug in which commands that were not assigned a shortcut could
  * fix a bug in which a single / on an empty line would not be an error.
  * replace the greedy completer and improve completion, in particular
  * implements tab completions for IPython options in the shell when
    using argcomplete
  * compatibility with Jedi 0.18, and bump minimum Jedi version.
    PR #12793
  compatibility with new or future versions of some libraries.
    matplotlib3.3+
    gh#ipython/ipython#12230
- update dep version of python-prompt_toolkit
    notebook). The behavior can be disable by passing the
  * Comments failing Jedi test :ghpull:`11110`
    completing non-executed code.
    only 5.x branch.
  * Faster shutdown. :ghpull:`10408`
    deactivate backslash-tab completion that may conflict with windows path.

OBS-URL: https://build.opensuse.org/request/show/1294230
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ipython?expand=0&rev=54
2025-07-24 16:34:33 +00:00
OBS User buildservice-autocommit
be3dba283b baserev update by copy to link target
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipython?expand=0&rev=146
2025-07-24 16:34:33 +00:00
OBS User buildservice-autocommit
b2273414d4 Updating link to change in openSUSE:Factory/python-ipython revision 54
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipython?expand=0&rev=8974d17bc9e689032f046a818e544df1
2025-07-24 16:34:33 +00:00
d0ef9cd785 - switch to pytest-trio
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipython?expand=0&rev=145
2025-07-17 20:43:02 +00:00
65fb801ec9 - skip deprecation warnings
(see #14620) but should be sufficient for now.
  * improve the documentatation for custom IPython formatters, and how
  * fix a bug in which commands that were not assigned a shortcut could
  * fix a bug in which a single / on an empty line would not be an error.
  * replace the greedy completer and improve completion, in particular
  * implements tab completions for IPython options in the shell when
    using argcomplete
  * compatibility with Jedi 0.18, and bump minimum Jedi version.
    PR #12793
  compatibility with new or future versions of some libraries.
    matplotlib3.3+
    gh#ipython/ipython#12230
- update dep version of python-prompt_toolkit
    notebook). The behavior can be disable by passing the
  * Comments failing Jedi test :ghpull:`11110`
    completing non-executed code.
    only 5.x branch.
  * Faster shutdown. :ghpull:`10408`
    deactivate backslash-tab completion that may conflict with windows path.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipython?expand=0&rev=144
2025-07-17 20:38:35 +00:00
9bad49e163 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipython?expand=0&rev=143 2025-07-17 20:30:02 +00:00
5ac5384589 Accepting request 1287223 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/1287223
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ipython?expand=0&rev=53
2025-06-23 12:55:11 +00:00
cb0d3f0014 Accepting request 1287218 from home:mcalabkova:branches:devel:languages:python:jupyter
- Update to 8.37
  * Fixes an error were a warning about virtualenvs was incorrectly triggered.
  * Fixes an issue on Python 3.12+ with post mortem debugging.
  * Fixes a bug where magics were ignoring SIGINT
  * Fixes an issue where magics would not display all subprocess output.
  * Fixed auto-suggestion on Prompt Toolkit < 3.0.49
  * Fixed Python 3.13 compatibility of local_ns
  * Improved Qt object management and performance
  * Better documentation and configurability of LLM completions
  * Fixed right arrow incorrectly accepting invisible auto-suggestions
  * Fixed Qt backend crash
  * Fixed tab-completion of global variables in lines with a dot when jedi is off
  * Fixed LLM request number always being set to zero and removed spurious logging
  * Passes current input history to LLMs
  * Fixed interruption of %%time and %%debug magics
  * Removed spurious empty lines from prefix passed to LLM, and separated part
    after cursor into the suffix
  * Eliminate startup delay when LLM completion provider is configured
  * Fix attribute completion for expressions with comparison operators

OBS-URL: https://build.opensuse.org/request/show/1287218
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipython?expand=0&rev=141
2025-06-20 12:27:00 +00:00
43037ed451 Accepting request 1241190 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/1241190
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ipython?expand=0&rev=52
2025-01-30 13:49:16 +00:00
27b72487e1 - Update to 8.31
* #14594 Fix completion in tuples, where the completion was suggesting
    tuples methods instead of methods and attributes of the current element.
  * #14598 Fix pdb issue with Python 3.13.1, this fix is not perfect
    (see #14620) but should be sufficient for now. 
- Drop py3131.patch as it is included in 8.31

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipython?expand=0&rev=139
2025-01-29 12:56:22 +00:00
449ed34548 Accepting request 1229867 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/1229867
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ipython?expand=0&rev=51
2024-12-11 20:01:03 +00:00
a6c0e87f1d - Update to 8.30
* improve the documentatation for custom IPython formatters, and how 
    you can register formatters for custom mime types.
  * fix a bug in which commands that were not assigned a shortcut could 
    not be assigned one.
  * fix a bug in which a single / on an empty line would not be an error. 
    This is due to the autocall behavior that we are thinking of deprecating.
- Add py3131.patch to fix behaviour with Python 3.13.1

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipython?expand=0&rev=137
2024-12-10 15:54:12 +00:00
2b6f031ac0 Accepting request 1224684 from devel:languages:python:jupyter
- Update to 8.29
  * Misc Python 3.13 compatibility #14536, #14559
  * Add a uv line magic #14537
  * Add support for WEBP to IPython.display.Image. #14526
  * And many more bugfixes and quality of life improvements.
- IPython 8.28
  * #14480 AssertionError: assert _xterm_term_title_saved in WSL
    It is unclear why the terminal title is not saved in WSL, if
    you've WSL experience we'd love your feedback and help to not
    just ignore an error
  * #14510 Fix use of pyside6 >= 6.7.0
  * #14518 Make values public (_tb_highlight & _tb_highlight_style)
  * #14515 Use environment variable to identify conda / mamba
- Remove deprecated %suse_update_desktop_file
  * https://en.opensuse.org/openSUSE:Update-desktop-files_deprecation
  * nothing relevant to upstream

OBS-URL: https://build.opensuse.org/request/show/1224684
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ipython?expand=0&rev=50
2024-11-18 18:57:10 +00:00
37d88e26cd - Update to 8.29
* Misc Python 3.13 compatibility #14536, #14559
  * Add a uv line magic #14537
  * Add support for WEBP to IPython.display.Image. #14526
  * And many more bugfixes and quality of life improvements.
- IPython 8.28
  * #14480 AssertionError: assert _xterm_term_title_saved in WSL
    It is unclear why the terminal title is not saved in WSL, if
    you've WSL experience we'd love your feedback and help to not
    just ignore an error
  * #14510 Fix use of pyside6 >= 6.7.0
  * #14518 Make values public (_tb_highlight & _tb_highlight_style)
  * #14515 Use environment variable to identify conda / mamba
- Remove deprecated %suse_update_desktop_file
  * https://en.opensuse.org/openSUSE:Update-desktop-files_deprecation
  * nothing relevant to upstream

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipython?expand=0&rev=135
2024-11-17 15:00:40 +00:00
5 changed files with 191 additions and 25 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0b99a2dc9f15fd68692e898e5568725c6d49c527d36a9fb5960ffbdeaa82ff7e
size 5494984

3
ipython-8.37.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ca815841e1a41a1e6b73a0b08f3038af9b2252564d01fc405356d34033012216
size 5606088

81
pytest-warnings.patch Normal file
View File

@@ -0,0 +1,81 @@
From 9dc9414beec774e0857d655299231fb8e311d9b8 Mon Sep 17 00:00:00 2001
From: M Bussonnier <bussonniermatthias@gmail.com>
Date: Sat, 22 Feb 2025 19:51:26 +0100
Subject: [PATCH] Fix a number of pytest warnings
---
tests/conftest.py | 13 -------------
tests/test_embed.py | 2 +-
tests/test_interactiveshell.py | 4 +---
tests/test_magic.py | 5 +++++
tests/test_run.py | 6 +++---
5 files changed, 10 insertions(+), 20 deletions(-)
Index: ipython-8.37.0/IPython/conftest.py
===================================================================
--- ipython-8.37.0.orig/IPython/conftest.py
+++ ipython-8.37.0/IPython/conftest.py
@@ -14,19 +14,6 @@ pytest.register_assert_rewrite("IPython.
from .testing import tools
-def pytest_collection_modifyitems(items):
- """This function is automatically run by pytest passing all collected test
- functions.
-
- We use it to add asyncio marker to all async tests and assert we don't use
- test functions that are async generators which wouldn't make sense.
- """
- for item in items:
- if inspect.iscoroutinefunction(item.obj):
- item.add_marker("asyncio")
- assert not inspect.isasyncgenfunction(item.obj)
-
-
def get_ipython():
from .terminal.interactiveshell import TerminalInteractiveShell
if TerminalInteractiveShell._instance:
Index: ipython-8.37.0/IPython/core/tests/test_magic.py
===================================================================
--- ipython-8.37.0.orig/IPython/core/tests/test_magic.py
+++ ipython-8.37.0/IPython/core/tests/test_magic.py
@@ -1198,6 +1198,7 @@ def test_script_out_err():
assert ip.user_ns["error"].strip() == "hello"
+@pytest.mark.asyncio
async def test_script_bg_out():
ip = get_ipython()
ip.run_cell_magic("script", f"--bg --out output {sys.executable}", "print('hi')")
@@ -1205,6 +1206,7 @@ async def test_script_bg_out():
assert ip.user_ns["output"].at_eof()
+@pytest.mark.asyncio
async def test_script_bg_err():
ip = get_ipython()
ip.run_cell_magic(
@@ -1216,6 +1218,7 @@ async def test_script_bg_err():
assert ip.user_ns["error"].at_eof()
+@pytest.mark.asyncio
async def test_script_bg_out_err():
ip = get_ipython()
ip.run_cell_magic(
@@ -1235,6 +1238,7 @@ async def test_script_bg_out_err():
assert ip.user_ns["error"].at_eof()
+@pytest.mark.asyncio
async def test_script_bg_proc():
ip = get_ipython()
ip.run_cell_magic(
@@ -1269,6 +1273,7 @@ def test_script_defaults():
assert cmd in ip.magics_manager.magics["cell"]
+@pytest.mark.asyncio
async def test_script_streams_continiously(capsys):
ip = get_ipython()
# Windows is slow to start up a thread on CI

View File

@@ -1,3 +1,80 @@
-------------------------------------------------------------------
Mon Aug 4 09:29:55 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Add upstream pytest-warnings.patch to fix tests with pytest 8.4+
- tests actually use pytest-asyncio, otherwise they break even with
the patch
-------------------------------------------------------------------
Thu Jul 17 20:38:14 UTC 2025 - Dirk Müller <dmueller@suse.com>
- switch to pytest-trio
-------------------------------------------------------------------
Fri Jun 20 12:10:38 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Update to 8.37
* Fixes an error were a warning about virtualenvs was incorrectly triggered.
* Fixes an issue on Python 3.12+ with post mortem debugging.
* Fixes a bug where magics were ignoring SIGINT
* Fixes an issue where magics would not display all subprocess output.
* Fixed auto-suggestion on Prompt Toolkit < 3.0.49
* Fixed Python 3.13 compatibility of local_ns
* Improved Qt object management and performance
* Better documentation and configurability of LLM completions
* Fixed right arrow incorrectly accepting invisible auto-suggestions
* Fixed Qt backend crash
* Fixed tab-completion of global variables in lines with a dot when jedi is off
* Fixed LLM request number always being set to zero and removed spurious logging
* Passes current input history to LLMs
* Fixed interruption of %%time and %%debug magics
* Removed spurious empty lines from prefix passed to LLM, and separated part
after cursor into the suffix
* Eliminate startup delay when LLM completion provider is configured
* Fix attribute completion for expressions with comparison operators
-------------------------------------------------------------------
Tue Jan 28 13:13:39 UTC 2025 - Yunus Acar <yunus.acar@suse.com>
- Update to 8.31
* #14594 Fix completion in tuples, where the completion was suggesting
tuples methods instead of methods and attributes of the current element.
* #14598 Fix pdb issue with Python 3.13.1, this fix is not perfect
(see #14620) but should be sufficient for now.
- Drop py3131.patch as it is included in 8.31
-------------------------------------------------------------------
Tue Dec 10 11:41:49 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Update to 8.30
* improve the documentatation for custom IPython formatters, and how
you can register formatters for custom mime types.
* fix a bug in which commands that were not assigned a shortcut could
not be assigned one.
* fix a bug in which a single / on an empty line would not be an error.
This is due to the autocall behavior that we are thinking of deprecating.
- Add py3131.patch to fix behaviour with Python 3.13.1
-------------------------------------------------------------------
Sun Nov 17 14:50:16 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Update to 8.29
* Misc Python 3.13 compatibility #14536, #14559
* Add a uv line magic #14537
* Add support for WEBP to IPython.display.Image. #14526
* And many more bugfixes and quality of life improvements.
- IPython 8.28
* #14480 AssertionError: assert _xterm_term_title_saved in WSL
It is unclear why the terminal title is not saved in WSL, if
you've WSL experience we'd love your feedback and help to not
just ignore an error
* #14510 Fix use of pyside6 >= 6.7.0
* #14518 Make values public (_tb_highlight & _tb_highlight_style)
* #14515 Use environment variable to identify conda / mamba
- Remove deprecated %suse_update_desktop_file
* https://en.opensuse.org/openSUSE:Update-desktop-files_deprecation
* nothing relevant to upstream
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Aug 30 10:10:52 UTC 2024 - Ben Greiner <code@bnavigator.de> Fri Aug 30 10:10:52 UTC 2024 - Ben Greiner <code@bnavigator.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-ipython # spec file for package python-ipython
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -33,13 +33,15 @@
%bcond_with localtest %bcond_with localtest
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-ipython%{psuffix} Name: python-ipython%{psuffix}
Version: 8.27.0 Version: 8.37.0
Release: 0 Release: 0
Summary: Rich architecture for interactive computing with Python Summary: Rich architecture for interactive computing with Python
License: BSD-3-Clause License: BSD-3-Clause
URL: https://github.com/ipython/ipython URL: https://github.com/ipython/ipython
Source: https://files.pythonhosted.org/packages/source/i/ipython/ipython-%{version}.tar.gz 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 Source1: https://raw.githubusercontent.com/jupyter/qtconsole/4.0.0/qtconsole/resources/icon/JupyterConsole.svg
# PATCH-FIX-UPSTREAM https://github.com/ipython/ipython/commit/9dc9414beec774e0857d655299231fb8e311d9b8 Fix a number of pytest warnings
Patch0: pytest-warnings.patch
BuildRequires: %{python_module base >= 3.10} BuildRequires: %{python_module base >= 3.10}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 61.2} BuildRequires: %{python_module setuptools >= 61.2}
@@ -100,7 +102,6 @@ BuildRequires: %{python_module nbformat}
%if !%{with test} %if !%{with test}
BuildRequires: desktop-file-utils BuildRequires: desktop-file-utils
BuildRequires: hicolor-icon-theme BuildRequires: hicolor-icon-theme
BuildRequires: update-desktop-files
%if %{with libalternatives} %if %{with libalternatives}
BuildRequires: alts BuildRequires: alts
Requires: alts Requires: alts
@@ -184,10 +185,17 @@ for x in 16 24 32 48 256 ; do
done done
%endif %endif
# Modify and install .desktop file %{python_expand # Modify and install .desktop file
%{python_expand cp examples/IPython\ Kernel/ipython.desktop ipython-%{$python_bin_suffix}.desktop f=ipython-%{$python_bin_suffix}.desktop
desktop-file-edit --set-comment="Enhanced interactive Python %{$python_bin_suffix} shell" --set-name="ipython %{$python_bin_suffix}" --set-generic-name="IPython %{$python_bin_suffix}" --set-key="Exec" --set-value="ipython-%{$python_bin_suffix}" --set-icon="IPython-%{$python_bin_suffix}" ipython-%{$python_bin_suffix}.desktop cp examples/IPython\ Kernel/ipython.desktop $f
%suse_update_desktop_file -i -r ipython-%{$python_bin_suffix} "System;TerminalEmulator;" desktop-file-edit \
--set-comment="Enhanced interactive Python %{$python_bin_suffix} shell" \
--set-name="ipython %{$python_bin_suffix}" \
--set-generic-name="IPython %{$python_bin_suffix}" \
--set-key="Exec" --set-value="ipython-%{$python_bin_suffix}" \
--set-icon="IPython-%{$python_bin_suffix}" \
$f
desktop-file-install $f
} }
%{python_expand # These can be run stand-alone, so make them executable rather than removing shebang %{python_expand # These can be run stand-alone, so make them executable rather than removing shebang