Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pymdown-extensions for 
openSUSE:Factory checked in at 2024-03-22 15:21:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pymdown-extensions (Old)
 and      /work/SRC/openSUSE:Factory/.python-pymdown-extensions.new.1905 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pymdown-extensions"

Fri Mar 22 15:21:13 2024 rev:7 rq:1160508 version:10.7.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pymdown-extensions/python-pymdown-extensions.changes
      2024-03-17 22:15:27.887201435 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pymdown-extensions.new.1905/python-pymdown-extensions.changes
    2024-03-22 15:33:36.841602591 +0100
@@ -1,0 +2,6 @@
+Fri Mar 22 02:46:48 UTC 2024 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Add patch fix-toc-list-check.patch:
+  * Assert toc_tokens is a superset of what we are looking for.
+
+-------------------------------------------------------------------

New:
----
  fix-toc-list-check.patch

BETA DEBUG BEGIN:
  New:
- Add patch fix-toc-list-check.patch:
  * Assert toc_tokens is a superset of what we are looking for.
BETA DEBUG END:

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

Other differences:
------------------
++++++ python-pymdown-extensions.spec ++++++
--- /var/tmp/diff_new_pack.HlItnd/_old  2024-03-22 15:33:37.493626559 +0100
+++ /var/tmp/diff_new_pack.HlItnd/_new  2024-03-22 15:33:37.493626559 +0100
@@ -23,6 +23,8 @@
 License:        MIT
 URL:            https://github.com/facelessuser/pymdown-extensions
 Source:         
https://github.com/facelessuser/pymdown-extensions/archive/refs/tags/%{version}.tar.gz#/pymdown-extensions-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE Assert toc_tokens is a superset of what we want to check
+Patch0:         fix-toc-list-check.patch
 BuildRequires:  %{python_module Markdown >= 3.2}
 BuildRequires:  %{python_module hatchling}
 BuildRequires:  %{python_module pip}
@@ -47,7 +49,7 @@
 by all people, there is usually at least one useful extension for anybody.
 
 %prep
-%setup -q -n pymdown-extensions-%{version}
+%autosetup -p1 -n pymdown-extensions-%{version}
 
 %build
 %pyproject_wheel

++++++ fix-toc-list-check.patch ++++++
Index: pymdown-extensions-10.7.1/tests/test_extensions/test_smartsymbols.py
===================================================================
--- pymdown-extensions-10.7.1.orig/tests/test_extensions/test_smartsymbols.py
+++ pymdown-extensions-10.7.1/tests/test_extensions/test_smartsymbols.py
@@ -139,4 +139,6 @@ class TestSmartSymbols(util.MdCase):
 
         md = markdown.Markdown(extensions=['toc', 'pymdownx.smartsymbols'])
         md.convert('# *Foo* =/= `bar`')
-        self.assertEqual(md.toc_tokens, [{'level': 1, 'id': 'foo-bar', 'name': 
'Foo &ne; bar', 'children': []}])
+        contains = {'level': 1, 'id': 'foo-bar', 'name': 'Foo &ne; bar', 
'children': []}
+        self.assertEqual(len(md.toc_tokens), 1)
+        self.assertLessEqual(contains.items(), md.toc_tokens[0].items())

Reply via email to