Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-ipython for openSUSE:Factory 
checked in at 2026-12-01 16:57:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ipython (Old)
 and      /work/SRC/openSUSE:Factory/.python-ipython.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-ipython"

Tue Dec  1 16:57:58 2026 rev:58 rq:1400970 version:9.19.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ipython/python-ipython.changes    
2026-11-24 12:22:57.148613402 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-ipython.new.1340718/python-ipython.changes   
    2026-12-01 16:58:10.615116875 +0100
@@ -1,0 +2,6 @@
+Thu Nov 26 19:46:43 UTC 2026 - Ben Greiner <[email protected]>
+
+- Update to 9.19.1
+  * Themes load when IPython runs from a zip file
+
+-------------------------------------------------------------------

Old:
----
  ipython-9.18.1.tar.gz

New:
----
  ipython-9.19.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-ipython.spec ++++++
--- /var/tmp/diff_new_pack.ZTK6jo/_old  2026-12-01 16:58:11.385149056 +0100
+++ /var/tmp/diff_new_pack.ZTK6jo/_new  2026-12-01 16:58:11.387149140 +0100
@@ -33,7 +33,7 @@
 %bcond_with localtest
 %{?sle15_python_module_pythons}
 Name:           python-ipython%{psuffix}
-Version:        9.18.1
+Version:        9.19.1
 Release:        0
 Summary:        Rich architecture for interactive computing with Python
 License:        BSD-3-Clause

++++++ ipython-9.18.1.tar.gz -> ipython-9.19.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ipython-9.18.1/IPython/core/displayhook.py 
new/ipython-9.19.1/IPython/core/displayhook.py
--- old/ipython-9.18.1/IPython/core/displayhook.py      2026-11-02 
10:19:20.215576600 +0100
+++ new/ipython-9.19.1/IPython/core/displayhook.py      2026-11-23 
10:06:03.448908600 +0100
@@ -136,7 +136,7 @@
         In the default implementation the format data is a :class:`dict` of
         key value pair where the keys are valid MIME types and the values
         are JSON'able data structure containing the raw data for that MIME
-        type. It is up to frontends to determine pick a MIME to to use and
+        type. It is up to frontends to determine pick a MIME to use and
         display that data in an appropriate manner.
 
         This method only computes the format data for the object and should
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ipython-9.18.1/IPython/core/release.py 
new/ipython-9.19.1/IPython/core/release.py
--- old/ipython-9.18.1/IPython/core/release.py  2026-11-02 10:19:20.219576600 
+0100
+++ new/ipython-9.19.1/IPython/core/release.py  2026-11-23 10:06:03.452908500 
+0100
@@ -15,7 +15,7 @@
 # release.  'dev' as a _version_extra string means this is a development
 # version
 _version_major = 9
-_version_minor = 18
+_version_minor = 19
 _version_patch = 1
 _version_extra = ".dev"
 # _version_extra = "b2"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ipython-9.18.1/IPython/utils/PyColorize.py 
new/ipython-9.19.1/IPython/utils/PyColorize.py
--- old/ipython-9.18.1/IPython/utils/PyColorize.py      2026-11-02 
10:19:20.224104000 +0100
+++ new/ipython-9.19.1/IPython/utils/PyColorize.py      2026-11-23 
10:06:03.458055500 +0100
@@ -318,8 +318,6 @@
     _TEXT: Token.Text,
 }
 
-_THEME_DIR = Path(__file__).parent / "themes"
-
 #: Entry point group third-party packages advertise extra themes in. The entry
 #: point is named after the theme it provides, and its value says where the
 #: theme's JSON file lives::
@@ -509,7 +507,15 @@
             return self._by_name[name]
         if name in _BUILTIN_THEMES:
             filename = _theme_filename(_BUILTIN_THEMES[name])
-            theme = Theme.from_file(_THEME_DIR / filename)
+            # Not `open()`: IPython may be imported from a zip file (zipapp).
+            from importlib.resources import files
+
+            data = json.loads(
+                (files("IPython.utils") / "themes" / filename).read_text(
+                    encoding="utf-8"
+                )
+            )
+            theme = Theme.from_dict(data)
         else:
             user_themes = self._get_user_themes()
             entry_points = {} if name in user_themes else 
self._get_entry_points()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ipython-9.18.1/IPython/utils/_sysinfo.py 
new/ipython-9.19.1/IPython/utils/_sysinfo.py
--- old/ipython-9.18.1/IPython/utils/_sysinfo.py        2026-11-02 
10:19:25.591110700 +0100
+++ new/ipython-9.19.1/IPython/utils/_sysinfo.py        2026-11-23 
10:06:09.088086600 +0100
@@ -1,2 +1,2 @@
 # GENERATED BY setup.py
-commit = "5aa346b"
+commit = "caa2e27"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ipython-9.18.1/PKG-INFO new/ipython-9.19.1/PKG-INFO
--- old/ipython-9.18.1/PKG-INFO 2026-11-02 10:19:25.587625700 +0100
+++ new/ipython-9.19.1/PKG-INFO 2026-11-23 10:06:09.083897800 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: ipython
-Version: 9.18.1
+Version: 9.19.1
 Summary: IPython: Productive Interactive Computing
 Author: The IPython Development Team
 Author-email: [email protected]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ipython-9.18.1/README.rst 
new/ipython-9.19.1/README.rst
--- old/ipython-9.18.1/README.rst       2026-11-02 10:19:20.225772000 +0100
+++ new/ipython-9.19.1/README.rst       2026-11-23 10:06:03.459735200 +0100
@@ -1,15 +1,9 @@
-.. image:: https://codecov.io/github/ipython/ipython/coverage.svg?branch=main
-    :target: https://codecov.io/github/ipython/ipython?branch=main
-
 .. image:: https://img.shields.io/pypi/v/IPython.svg
     :target: https://pypi.python.org/pypi/ipython
 
 .. image:: 
https://github.com/ipython/ipython/actions/workflows/test.yml/badge.svg
     :target: https://github.com/ipython/ipython/actions/workflows/test.yml
 
-.. image:: https://www.codetriage.com/ipython/ipython/badges/users.svg
-    :target: https://www.codetriage.com/ipython/ipython/
-
 .. image:: https://raster.shields.io/badge/Follows-SPEC--0000-brightgreen.png
     :target: https://scientific-python.org/specs/spec-0000/
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ipython-9.18.1/docs/source/coredev/index.rst 
new/ipython-9.19.1/docs/source/coredev/index.rst
--- old/ipython-9.18.1/docs/source/coredev/index.rst    2026-11-02 
10:19:20.239375400 +0100
+++ new/ipython-9.19.1/docs/source/coredev/index.rst    2026-11-23 
10:06:03.479267000 +0100
@@ -59,8 +59,12 @@
 
 Make sure you have all the required dependencies to run the tests as well.
 
-You can try to ``source tools/release_helper.sh`` when releasing via bash, it
-should guide you through most of the process.
+You can try to ``source tools/release_helper.sh`` when releasing via bash or
+zsh, it should guide you through most of the process. It sets the version in
+``IPython/core/release.py`` for the release and for the next dev version, and
+shows every command (as written and with variables expanded) before running it.
+Building the docs locally and uploading manually with twine are skipped unless
+you ask for them.
 
 
 1. Set Environment variables
@@ -194,6 +198,10 @@
 
 (omit the ``-s`` if you are not signing the package)
 
+The tag must be exactly the full ``X.Y.Z`` version computed by ``release.py``
+(``9.19.0``, not ``9.19``): the publish workflow refuses to publish when the
+tag and the built version differ.
+
 Pushing the tag triggers the ``publish.yml`` GitHub Actions workflow, which
 builds the package and publishes it to PyPI.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ipython-9.18.1/docs/source/whatsnew/version9.rst 
new/ipython-9.19.1/docs/source/whatsnew/version9.rst
--- old/ipython-9.18.1/docs/source/whatsnew/version9.rst        2026-11-02 
10:19:20.242576800 +0100
+++ new/ipython-9.19.1/docs/source/whatsnew/version9.rst        2026-11-23 
10:06:03.482908500 +0100
@@ -2,6 +2,32 @@
  9.x Series
 ============
 
+.. _version 9.19:
+
+IPython 9.19
+------------
+
+This is a small release with a single user-visible fix.
+
+Themes load when IPython runs from a zip file
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Since 9.18 the bundled themes are JSON files, and they were opened through a
+path on disk. When IPython was imported from a zip file, for example as part
+of a :mod:`zipapp`, starting IPython failed with ``NotADirectoryError``. The
+bundled themes are now read through :mod:`importlib.resources`, which works in
+both cases. (:ghissue:`15477`)
+
+Thanks
+~~~~~~
+
+Thanks as well to the `D. E. Shaw group <https://deshaw.com/>`_ for sponsoring
+work on IPython.
+
+As usual, you can find the full list of PRs on GitHub under `the 9.19
+<https://github.com/ipython/ipython/milestone/171?closed=1>`__ milestone.
+
+
 .. _version 9.18.1:
 
 IPython 9.18.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ipython-9.18.1/ipython.egg-info/PKG-INFO 
new/ipython-9.19.1/ipython.egg-info/PKG-INFO
--- old/ipython-9.18.1/ipython.egg-info/PKG-INFO        2026-11-02 
10:19:25.499624700 +0100
+++ new/ipython-9.19.1/ipython.egg-info/PKG-INFO        2026-11-23 
10:06:09.002898000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: ipython
-Version: 9.18.1
+Version: 9.19.1
 Summary: IPython: Productive Interactive Computing
 Author: The IPython Development Team
 Author-email: [email protected]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ipython-9.18.1/tests/test_debugger.py 
new/ipython-9.19.1/tests/test_debugger.py
--- old/ipython-9.18.1/tests/test_debugger.py   2026-11-02 10:19:20.244577000 
+0100
+++ new/ipython-9.19.1/tests/test_debugger.py   2026-11-23 10:06:03.485908500 
+0100
@@ -621,6 +621,120 @@
     child.close()
 
 
+_CORNER_HELPERS = """
+def helper_1():
+    pass
+
+def helper_2():
+    pass
+"""
+
+# ``__debuggerskip__`` is first assigned after ``helper_1()`` has been called.
+_CORNER_FLAG_AFTER_HELPER = """
+def foo_decorator(function):
+    def wrapped_fn(*args, **kwargs):
+        helper_1()
+        __debuggerskip__ = False
+        result = function(*args, **kwargs)
+        __debuggerskip__ = True
+        helper_2()
+        return result
+    return wrapped_fn
+"""
+
+# Code runs after the wrapped call returns, while ``__debuggerskip__`` is 
False.
+_CORNER_RESULT_AFTER_CALL = """
+def foo_decorator(function):
+    def wrapped_fn(*args, **kwargs):
+        __debuggerskip__ = True
+        helper_1()
+        __debuggerskip__ = False
+        result = function(*args, **kwargs)
+        result = result * 1.0
+        __debuggerskip__ = True
+        helper_2()
+        return result
+    return wrapped_fn
+"""
+
+_CORNER_TAIL = """
+@foo_decorator
+def bar(x, y):
+    return x * y
+
+def f():
+    import IPython.terminal.debugger as ipdb
+    ipdb.set_trace()
+    bar(3, 4)
+"""
+
+_STOP_RE = re_module.compile(r"^> \S+?\((\d+)\)(\w+)\(\)", re_module.M)
+
+
+def _debuggerskip_stops(decorator_src, steps):
+    """Step through ``f()`` in IPython and return ``(line, function)`` for 
every stop."""
+    import pexpect
+
+    env = os.environ.copy()
+    env["IPY_TEST_SIMPLE_PROMPT"] = "1"
+    env["PROMPT_TOOLKIT_NO_CPR"] = "1"
+
+    name = "debuggerskip_corner"
+    stops = []
+    with TemporaryDirectory() as tmp:
+        Path(tmp, f"{name}.py").write_text(
+            _CORNER_HELPERS + decorator_src + _CORNER_TAIL
+        )
+        child = pexpect.spawn(
+            sys.executable,
+            ["-m", "IPython", "--colors=nocolor"],
+            env=env,
+            cwd=tmp,
+            encoding="utf-8",
+        )
+        child.timeout = 15 * IPYTHON_TESTING_TIMEOUT_SCALE
+        child.expect("In \\[1\\]:")
+        child.sendline(f"from {name} import f")
+        child.expect("In \\[2\\]:")
+        child.sendline("f()")
+        child.expect("ipdb>")
+        for _ in range(steps):
+            child.sendline("step")
+            child.expect("ipdb>")
+            stops += _STOP_RE.findall(child.before)
+        child.close(force=True)
+    return stops
+
+
[email protected](platform.python_implementation() == "PyPy", reason="issues 
on PyPy")
+@skip_win32
+def test_debuggerskip_flag_assigned_after_helper():
+    """Frames are skipped by the presence of ``__debuggerskip__``, not its 
value.
+
+    ``helper_1()`` is called before the flag is assigned, so stepping can enter
+    it, but no line of ``wrapped_fn`` itself is a stop.
+    """
+    stops = _debuggerskip_stops(_CORNER_FLAG_AFTER_HELPER, steps=6)
+    functions = {func for _, func in stops}
+    assert "wrapped_fn" not in functions
+    assert "helper_1" in functions
+    assert "bar" in functions
+
+
[email protected](platform.python_implementation() == "PyPy", reason="issues 
on PyPy")
+@skip_win32
+def test_debuggerskip_result_used_after_call():
+    """A frame that mentions ``__debuggerskip__`` is never a stop, even after 
the call returns.
+
+    The ``result = result * 1.0`` line runs while the flag is False, but it is
+    still stepped over.
+    """
+    stops = _debuggerskip_stops(_CORNER_RESULT_AFTER_CALL, steps=6)
+    functions = {func for _, func in stops}
+    assert "wrapped_fn" not in functions
+    assert "bar" in functions
+
+
 @skip_win32
 def test_where_erase_value():
     """Test that `where` does not access f_locals and erase values."""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ipython-9.18.1/tests/test_guarded_eval.py 
new/ipython-9.19.1/tests/test_guarded_eval.py
--- old/ipython-9.18.1/tests/test_guarded_eval.py       2026-11-02 
10:19:20.245576900 +0100
+++ new/ipython-9.19.1/tests/test_guarded_eval.py       2026-11-23 
10:06:03.486908400 +0100
@@ -148,7 +148,7 @@
 
 
 @dec.skip_without("pandas")
-def test_accepts_non_overriden_properties():
+def test_accepts_non_overridden_properties():
     import pandas as pd
 
     class GoodProperty(pd.Series):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ipython-9.18.1/tests/test_themes.py 
new/ipython-9.19.1/tests/test_themes.py
--- old/ipython-9.18.1/tests/test_themes.py     2026-11-02 10:19:20.248576900 
+0100
+++ new/ipython-9.19.1/tests/test_themes.py     2026-11-23 10:06:03.489908500 
+0100
@@ -1,19 +1,22 @@
 """Tests for the JSON-backed theme table."""
 
+import importlib
 import json
 import os
 import sys
 import unicodedata
+import zipfile
+from pathlib import Path
 from types import SimpleNamespace
 
 import pytest
 from pygments.token import Token
 
+from IPython.utils import PyColorize
 from IPython.utils.PyColorize import (
     _BUILTIN_THEMES,
     _FORBIDDEN_SYMBOL_CATEGORIES,
     MAX_SYMBOL_LENGTH,
-    _THEME_DIR,
     _theme_filename,
     Theme,
     ThemeTable,
@@ -21,6 +24,8 @@
     token_from_str,
 )
 
+THEME_DIR = Path(PyColorize.__file__).parent / "themes"
+
 # Written as escapes rather than literally: these are invisible or private use
 # characters, which editors and other tooling silently mangle. See
 # test_the_unicode_fixtures_are_what_they_claim.
@@ -110,12 +115,29 @@
 @pytest.mark.parametrize("name", sorted(set(_BUILTIN_THEMES.values())))
 def test_builtin_theme_files_are_self_describing(name):
     """Every shipped file must name itself after the file it lives in."""
-    data = json.loads((_THEME_DIR / 
_theme_filename(name)).read_text(encoding="utf-8"))
+    data = json.loads((THEME_DIR / 
_theme_filename(name)).read_text(encoding="utf-8"))
     assert data["name"] == name
     assert set(data) <= {"name", "base", "extra_style", "symbols"}
     assert Theme.from_dict(data).extra_style == theme_table[name].extra_style
 
 
+def test_builtin_themes_load_from_a_zip(tmp_path, monkeypatch):
+    """Bundled themes load when IPython is imported from a zip file 
(gh-15477)."""
+    zip_path = tmp_path / "ipython.zip"
+    with zipfile.ZipFile(zip_path, "w") as zf:
+        zf.writestr("IPython/__init__.py", "")
+        zf.writestr("IPython/utils/__init__.py", "")
+        zf.write(PyColorize.__file__, "IPython/utils/PyColorize.py")
+        for path in THEME_DIR.glob("*.json"):
+            zf.write(path, f"IPython/utils/themes/{path.name}")
+    for name in ("IPython", "IPython.utils", "IPython.utils.PyColorize"):
+        monkeypatch.delitem(sys.modules, name)
+    monkeypatch.syspath_prepend(str(zip_path))
+    zipped = importlib.import_module("IPython.utils.PyColorize")
+    assert zipped.__file__.startswith(str(zip_path))
+    assert zipped.ThemeTable()["linux"].name == "linux"
+
+
 def test_neutral_aliases_the_platform_theme():
     platform_theme = theme_table["neutral:nt" if os.name == "nt" else 
"neutral:posix"]
     assert theme_table["neutral"].extra_style == platform_theme.extra_style

Reply via email to