Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-inline-snapshot for 
openSUSE:Factory checked in at 2026-02-04 21:00:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-inline-snapshot (Old)
 and      /work/SRC/openSUSE:Factory/.python-inline-snapshot.new.1670 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-inline-snapshot"

Wed Feb  4 21:00:50 2026 rev:9 rq:1330838 version:0.31.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-inline-snapshot/python-inline-snapshot.changes
    2026-01-15 16:44:09.767060887 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-inline-snapshot.new.1670/python-inline-snapshot.changes
  2026-02-04 21:00:57.379681816 +0100
@@ -1,0 +2,6 @@
+Wed Feb  4 01:31:04 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch regenerate-snapshots.patch:
+  * Regenerate snapshots due to Python 3.12 changes. (bsc#1257517)
+
+-------------------------------------------------------------------

New:
----
  regenerate-snapshots.patch

----------(New B)----------
  New:
- Add patch regenerate-snapshots.patch:
  * Regenerate snapshots due to Python 3.12 changes. (bsc#1257517)
----------(New E)----------

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

Other differences:
------------------
++++++ python-inline-snapshot.spec ++++++
--- /var/tmp/diff_new_pack.N81ms8/_old  2026-02-04 21:00:58.223717163 +0100
+++ /var/tmp/diff_new_pack.N81ms8/_new  2026-02-04 21:00:58.227717331 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-inline-snapshot
 #
-# Copyright (c) 2025 SUSE LLC and contributors
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -32,6 +32,8 @@
 License:        MIT
 URL:            https://github.com/15r10nk/inline-snapshot/
 Source:         
https://files.pythonhosted.org/packages/source/i/inline-snapshot/inline_snapshot-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE Regenerate snapshots for Python 3.12 changes
+Patch0:         regenerate-snapshots.patch
 BuildRequires:  %{python_module base >= 3.8}
 BuildRequires:  %{python_module hatchling}
 BuildRequires:  %{python_module pip}
@@ -96,6 +98,6 @@
 %doc README.md CHANGELOG.md
 %license LICENSE
 %{python_sitelib}/inline_snapshot
-%{python_sitelib}/inline_snapshot-%{version}*-info
+%{python_sitelib}/inline_snapshot-%{version}.dist-info
 %endif
 

++++++ regenerate-snapshots.patch ++++++
diff -urNP inline_snapshot-0.31.1.orig/docs/categories.md 
inline_snapshot-0.31.1/docs/categories.md
--- inline_snapshot-0.31.1.orig/docs/categories.md      2020-02-02 
00:00:00.000000000 +0000
+++ inline_snapshot-0.31.1/docs/categories.md   2026-02-04 00:48:29.123486656 
+0000
@@ -220,7 +220,7 @@
 === "--inline-snapshot=update"
 
     <!-- inline-snapshot: update outcome-passed=1 -->
-    ``` python hl_lines="20 21 22 23 24 25 26 28 30"
+    ``` python hl_lines="20 21 22 23 24 26 28"
     from inline_snapshot import snapshot
 
 
@@ -240,13 +240,11 @@
 
 
     def test_something():
-        assert "a\nb\nc\n" == snapshot(
-            """\
+        assert "a\nb\nc\n" == snapshot("""\
     a
     b
     c
-    """
-        )
+    """)
 
         assert 5 == snapshot(5)
 
diff -urNP inline_snapshot-0.31.1.orig/docs/code_generation.md 
inline_snapshot-0.31.1/docs/code_generation.md
--- inline_snapshot-0.31.1.orig/docs/code_generation.md 2020-02-02 
00:00:00.000000000 +0000
+++ inline_snapshot-0.31.1/docs/code_generation.md      2026-02-04 
00:48:29.123653689 +0000
@@ -86,17 +86,15 @@
 
         === "--inline-snapshot=update"
             <!-- inline-snapshot: update outcome-passed=1 -->
-            ``` python hl_lines="6 7 8 9"
+            ``` python hl_lines="5 6 7 8"
             from inline_snapshot import snapshot
 
 
             def test_something():
-                assert "first line\nsecond line" == snapshot(
-                    """\
+                assert "first line\nsecond line" == snapshot("""\
             first line
             second line\
-            """
-                )
+            """)
             ```
 
 
diff -urNP inline_snapshot-0.31.1.orig/docs/testing.md 
inline_snapshot-0.31.1/docs/testing.md
--- inline_snapshot-0.31.1.orig/docs/testing.md 2020-02-02 00:00:00.000000000 
+0000
+++ inline_snapshot-0.31.1/docs/testing.md      2026-02-04 00:48:29.123775181 
+0000
@@ -29,32 +29,24 @@
 Inline-snapshot will then populate the empty snapshots.
 
 <!-- inline-snapshot: create outcome-passed=1 outcome-errors=1 -->
-``` python hl_lines="17 18 19 20 21 22 23 24 25 26"
+``` python hl_lines="7 11 13 14 15 16 17 18"
 from inline_snapshot.testing import Example
 from inline_snapshot import snapshot
 
 
 def test_something():
 
-    Example(
-        {
-            "test_a.py": """\
+    Example({"test_a.py": """\
 from inline_snapshot import snapshot
 def test_a():
     assert 1+1 == snapshot()
-"""
-        }
-    ).run_pytest(  # run with the create flag and check the changed files
+"""}).run_pytest(  # run with the create flag and check the changed files
         ["--inline-snapshot=create"],
-        changed_files=snapshot(
-            {
-                "test_a.py": """\
+        changed_files=snapshot({"test_a.py": """\
 from inline_snapshot import snapshot
 def test_a():
     assert 1+1 == snapshot(2)
-"""
-            }
-        ),
+"""}),
         returncode=snapshot(1),
     )
 ```
diff -urNP inline_snapshot-0.31.1.orig/tests/external/test_external.py 
inline_snapshot-0.31.1/tests/external/test_external.py
--- inline_snapshot-0.31.1.orig/tests/external/test_external.py 2020-02-02 
00:00:00.000000000 +0000
+++ inline_snapshot-0.31.1/tests/external/test_external.py      2026-02-04 
00:56:12.137722889 +0000
@@ -1,6 +1,6 @@
 import ast
 import sys
-from pathlib import Path
+from pathlib import Path, PosixPath
 
 from inline_snapshot import external
 from inline_snapshot import outsource
@@ -375,7 +375,7 @@
                 storage="hash",
                 stem="111*",
                 suffix=".txt",
-                filename=Path("a.py"),
+                filename=PosixPath("a.py"),
                 linenumber=1,
             )
         ]

Reply via email to