Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-panflute for openSUSE:Factory 
checked in at 2023-06-03 00:07:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-panflute (Old)
 and      /work/SRC/openSUSE:Factory/.python-panflute.new.15902 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-panflute"

Sat Jun  3 00:07:24 2023 rev:7 rq:1090387 version:2.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-panflute/python-panflute.changes  
2022-10-06 07:42:16.624697053 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-panflute.new.15902/python-panflute.changes   
    2023-06-03 00:07:30.642090614 +0200
@@ -1,0 +2,8 @@
+Thu Jun  1 20:16:40 UTC 2023 - Dirk Müller <[email protected]>
+
+- update to 2.3.0:
+  * Update Pandoc API from 1.22 to 1.23 (Pandoc 3.0):
+  * Add `Figure` block object
+  * Remove `Null` block object (scheduled for removed)
+
+-------------------------------------------------------------------

Old:
----
  panflute-2.2.3.tar.gz

New:
----
  panflute-2.3.0.tar.gz

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

Other differences:
------------------
++++++ python-panflute.spec ++++++
--- /var/tmp/diff_new_pack.anmtL6/_old  2023-06-03 00:07:32.418101100 +0200
+++ /var/tmp/diff_new_pack.anmtL6/_new  2023-06-03 00:07:32.426101147 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-panflute
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %bcond_without python2
 Name:           python-panflute
-Version:        2.2.3
+Version:        2.3.0
 Release:        0
 Summary:        Pandoc filters package for Python
 License:        BSD-3-Clause

++++++ panflute-2.2.3.tar.gz -> panflute-2.3.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/panflute-2.2.3/LICENSE new/panflute-2.3.0/LICENSE
--- old/panflute-2.2.3/LICENSE  2022-07-14 17:30:15.000000000 +0200
+++ new/panflute-2.3.0/LICENSE  2023-01-26 07:25:01.000000000 +0100
@@ -1,4 +1,4 @@
-Copyright (c) 2016, Sergio Correia
+Copyright (c) 2016-2023, Sergio Correia
 
 All rights reserved.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/panflute-2.2.3/PKG-INFO new/panflute-2.3.0/PKG-INFO
--- old/panflute-2.2.3/PKG-INFO 2022-07-14 17:30:25.499820000 +0200
+++ new/panflute-2.3.0/PKG-INFO 2023-01-26 07:25:16.165549300 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: panflute
-Version: 2.2.3
+Version: 2.3.0
 Summary: Pythonic Pandoc filters
 Home-page: https://github.com/sergiocorreia/panflute
 Author: Sergio Correia
@@ -10,7 +10,6 @@
 Project-URL: Documentation, http://scorreia.com/software/panflute/
 Project-URL: Tracker, https://github.com/sergiocorreia/panflute/issues
 Keywords: pandoc pandocfilters markdown latex
-Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Environment :: Console
 Classifier: Intended Audience :: End Users/Desktop
@@ -24,6 +23,7 @@
 Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: 3.9
 Classifier: Programming Language :: Python :: 3.10
+Classifier: Programming Language :: Python :: 3.11
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Requires-Python: >=3.6
@@ -96,7 +96,8 @@
 
 | panflute version | supported pandoc versions | supported pandoc API versions 
|
 | ---------------- | ------------------------- | ----------------------------- 
|
-| 2.1.3            | 2.11.0.4–2.17.x           | 1.22–1.22.1               
    |
+| 2.3.0            | 2.11.0.4–3.0.x            | 1.22–1.23                 
    |
+| 2.2.4            | 2.11.0.4–2.17.x           | 1.22–1.22.1               
    |
 | 2.1              | 2.11.0.4—2.14.x           | 1.22                        
  |
 | 2.0              | 2.11.0.4—2.11.x           | 1.22                        
  |
 | not supported    | 2.10                      | 1.21                          
|
@@ -120,3 +121,8 @@
 BSD3 license (following 
[`pandocfilters`](https://github.com/jgm/pandocfilters) by @jgm).
 
 
+## Changelog
+
+- `2.3.0` Update [Pandoc 
API](https://github.com/jgm/pandoc-types/blob/master/changelog) from 1.22 to 
1.23 ([Pandoc 3.0](https://pandoc.org/releases.html#pandoc-3.0-2023-01-18)):
+    - Add `Figure` block object
+    - Remove `Null` block object (scheduled for removed)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/panflute-2.2.3/README.md new/panflute-2.3.0/README.md
--- old/panflute-2.2.3/README.md        2022-07-14 17:30:15.000000000 +0200
+++ new/panflute-2.3.0/README.md        2023-01-26 07:25:01.000000000 +0100
@@ -61,7 +61,8 @@
 
 | panflute version | supported pandoc versions | supported pandoc API versions 
|
 | ---------------- | ------------------------- | ----------------------------- 
|
-| 2.1.3            | 2.11.0.4–2.17.x           | 1.22–1.22.1               
    |
+| 2.3.0            | 2.11.0.4–3.0.x            | 1.22–1.23                 
    |
+| 2.2.4            | 2.11.0.4–2.17.x           | 1.22–1.22.1               
    |
 | 2.1              | 2.11.0.4—2.14.x           | 1.22                        
  |
 | 2.0              | 2.11.0.4—2.11.x           | 1.22                        
  |
 | not supported    | 2.10                      | 1.21                          
|
@@ -83,3 +84,10 @@
 ## License
 
 BSD3 license (following 
[`pandocfilters`](https://github.com/jgm/pandocfilters) by @jgm).
+
+
+## Changelog
+
+- `2.3.0` Update [Pandoc 
API](https://github.com/jgm/pandoc-types/blob/master/changelog) from 1.22 to 
1.23 ([Pandoc 3.0](https://pandoc.org/releases.html#pandoc-3.0-2023-01-18)):
+    - Add `Figure` block object
+    - Remove `Null` block object (scheduled for removed)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/panflute-2.2.3/panflute/__init__.py 
new/panflute-2.3.0/panflute/__init__.py
--- old/panflute-2.2.3/panflute/__init__.py     2022-07-14 17:30:15.000000000 
+0200
+++ new/panflute-2.3.0/panflute/__init__.py     2023-01-26 07:25:01.000000000 
+0100
@@ -22,7 +22,7 @@
     Code, BlockQuote, Note, Div, Plain, Para, Emph, Strong, Underline,
     Strikeout, Superscript, Subscript, SmallCaps, Span, RawBlock, RawInline,
     Math, CodeBlock, Link, Image, BulletList, OrderedList, DefinitionList,
-    LineBlock, Header, Quoted, Cite)
+    LineBlock, Figure, Header, Quoted, Cite)
 
 from .table_elements import (
     Table, TableHead, TableFoot, TableBody,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/panflute-2.2.3/panflute/base.py 
new/panflute-2.3.0/panflute/base.py
--- old/panflute-2.2.3/panflute/base.py 2022-07-14 17:30:15.000000000 +0200
+++ new/panflute-2.3.0/panflute/base.py 2023-01-26 07:25:01.000000000 +0100
@@ -22,7 +22,7 @@
     """
     Base class of all Pandoc elements
     """
-    __slots__ = ['parent', 'location']
+    __slots__ = ['parent', 'location', 'index']
     _children = []
 
     def __new__(cls, *args, **kwargs):
@@ -30,6 +30,7 @@
         element = object.__new__(cls)
         element.parent = None
         element.location = None
+        element.index = None
         return element
 
     @property
@@ -135,17 +136,6 @@
     # ---------------------------
 
     @property
-    def index(self):
-        """
-        Return position of element inside the parent.
-
-        :rtype: ``int`` | ``None``
-        """
-        container = self.container
-        if container is not None:
-            return container.index(self)
-
-    @property
     def container(self):
         """
         Rarely used attribute that returns the ``ListContainer`` or
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/panflute-2.2.3/panflute/containers.py 
new/panflute-2.3.0/panflute/containers.py
--- old/panflute-2.2.3/panflute/containers.py   2022-07-14 17:30:15.000000000 
+0200
+++ new/panflute-2.3.0/panflute/containers.py   2023-01-26 07:25:01.000000000 
+0100
@@ -18,7 +18,8 @@
 # These are list and dict containers that
 #  (a) track the identity of their parents, and
 #  (b) track the parent's property where they are stored
-# They attach these two to the elements requested through __getattr__
+#  (c) track the index in the parent in case of list
+# They attach these three to the elements requested through __getattr__
 
 class ListContainer(MutableSequence):
     """
@@ -55,7 +56,7 @@
 
     def __getitem__(self, i):
         if isinstance(i, int):
-            return attach(self.list[i], self.parent, self.location)
+            return attach(self.list[i], self.parent, self.location, i)
         else:
             newlist = self.list.__getitem__(i)
             obj = ListContainer(*newlist,
@@ -168,10 +169,11 @@
 # Functions
 # ---------------------------
 
-def attach(element, parent, location):
+def attach(element, parent, location, index=None):
     if not isinstance(element, (int, str, bool)):
         element.parent = parent
         element.location = location
+        element.index = index
     else:
         debug(f'Warning: element "{type(element)}" has no parent')
     return element
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/panflute-2.2.3/panflute/elements.py 
new/panflute-2.3.0/panflute/elements.py
--- old/panflute-2.2.3/panflute/elements.py     2022-07-14 17:30:15.000000000 
+0200
+++ new/panflute-2.3.0/panflute/elements.py     2023-01-26 07:25:01.000000000 
+0100
@@ -9,7 +9,7 @@
 # Imports
 # ---------------------------
 
-from .utils import check_type, check_group, encode_dict, decode_ica, debug
+from .utils import check_type, check_group, encode_dict, decode_ica, debug, 
check_type_or_value
 from .utils import load_pandoc_version, load_pandoc_reader_options
 from .containers import ListContainer, DictContainer
 from .base import Element, Block, Inline, MetaValue
@@ -53,7 +53,7 @@
 
     _children = ['metadata', 'content']
 
-    def __init__(self, *args, metadata={}, format='html', api_version=(1, 22)):
+    def __init__(self, *args, metadata={}, format='html', api_version=(1, 23)):
         self._set_content(args, Block)
         self.metadata = metadata
         self.format = format  # Output format
@@ -101,6 +101,7 @@
 # Classes - Empty
 # ---------------------------
 
+# TODO: Remove
 class Null(Block):
     """Nothing
 
@@ -1006,6 +1007,55 @@
         return self.content.to_json()
 
 
+
+# ---------------------------
+# Classes - Figures
+# ---------------------------
+
+class Figure(Block):
+    """Standalone figure, with attributes, caption, and arbitrary block content
+
+    :param args: contents of the figure block
+    :type args: :class:`Block`
+    :param identifier: element identifier (usually unique)
+    :type identifier: :class:`str`
+    :param classes: class names of the element
+    :type classes: :class:`list` of :class:`str`
+    :param attributes: additional attributes
+    :type attributes: :class:`dict`
+    :Base: :class:`Block`
+
+    :Example:
+
+        >>> image = Image(Str("Description"), title='The Title',
+                    url='example.png', attributes={'height':'256px'})
+        >>> caption = Caption(Plain(Str('The'), Space, Str('Caption')))
+        >>> figure = Figure(Plain(image), caption=caption, 
identifier='figure1')
+     """
+
+    __slots__ = ['_content', '_caption', 'identifier', 'classes', 'attributes']
+    _children = ['content', 'caption']
+
+    def __init__(self, *args, caption=None, identifier='', classes=[], 
attributes={}):
+        self._set_ica(identifier, classes, attributes)
+        self._set_content(args, Block)
+        self.caption = caption
+
+    @property
+    def caption(self):
+        return self._caption
+
+    @caption.setter
+    def caption(self, value):
+        self._caption = check_type_or_value(value, Caption, None)
+        if self._caption is not None:
+            self._caption.parent = self
+            self._caption.location = 'caption'
+
+    def _slots_to_json(self):
+        return [self._ica_to_json(), self.caption.to_json(), 
self.content.to_json()]
+
+
 # ---------------------------
 # Classes - Metadata
 # ---------------------------
@@ -1342,6 +1392,7 @@
     'DefinitionList': lambda c: DefinitionList(*[_decode_definition_item(item) 
for item in c]),
     'LineBlock': lambda c: LineBlock(*[LineItem(*item) for item in c]),
     'ColWidth': lambda c: c,
+    'Figure': lambda c: Figure(*c[2], caption=Caption(*c[1][1], 
short_caption=c[1][0]), **decode_ica(c[0])),
     'Table': table_from_json,
     'MetaMap': lambda c: MetaMap(*c.items()),
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/panflute-2.2.3/panflute/tools.py 
new/panflute-2.3.0/panflute/tools.py
--- old/panflute-2.2.3/panflute/tools.py        2022-07-14 17:30:15.000000000 
+0200
+++ new/panflute-2.3.0/panflute/tools.py        2023-01-26 07:25:01.000000000 
+0100
@@ -186,8 +186,9 @@
                     raw = raw[0]
                     try:
                         options = yaml.load(raw, Loader=Loader)  # nosec  # 
already using SafeLoader
-                    except yaml.scanner.ScannerError:
-                        debug("panflute: malformed YAML block")
+                    except (yaml.scanner.ScannerError, 
yaml.parser.ParserError):
+                        debug("panflute: malformed YAML block:")
+                        debug(repr(raw))
                         return
                     if options is None:
                         options = {}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/panflute-2.2.3/panflute/version.py 
new/panflute-2.3.0/panflute/version.py
--- old/panflute-2.2.3/panflute/version.py      2022-07-14 17:30:15.000000000 
+0200
+++ new/panflute-2.3.0/panflute/version.py      2023-01-26 07:25:01.000000000 
+0100
@@ -2,4 +2,4 @@
 Panflute version
 """
 
-__version__ = '2.2.3'
+__version__ = '2.3.0'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/panflute-2.2.3/panflute.egg-info/PKG-INFO 
new/panflute-2.3.0/panflute.egg-info/PKG-INFO
--- old/panflute-2.2.3/panflute.egg-info/PKG-INFO       2022-07-14 
17:30:25.000000000 +0200
+++ new/panflute-2.3.0/panflute.egg-info/PKG-INFO       2023-01-26 
07:25:16.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: panflute
-Version: 2.2.3
+Version: 2.3.0
 Summary: Pythonic Pandoc filters
 Home-page: https://github.com/sergiocorreia/panflute
 Author: Sergio Correia
@@ -10,7 +10,6 @@
 Project-URL: Documentation, http://scorreia.com/software/panflute/
 Project-URL: Tracker, https://github.com/sergiocorreia/panflute/issues
 Keywords: pandoc pandocfilters markdown latex
-Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Environment :: Console
 Classifier: Intended Audience :: End Users/Desktop
@@ -24,6 +23,7 @@
 Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: 3.9
 Classifier: Programming Language :: Python :: 3.10
+Classifier: Programming Language :: Python :: 3.11
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Requires-Python: >=3.6
@@ -96,7 +96,8 @@
 
 | panflute version | supported pandoc versions | supported pandoc API versions 
|
 | ---------------- | ------------------------- | ----------------------------- 
|
-| 2.1.3            | 2.11.0.4–2.17.x           | 1.22–1.22.1               
    |
+| 2.3.0            | 2.11.0.4–3.0.x            | 1.22–1.23                 
    |
+| 2.2.4            | 2.11.0.4–2.17.x           | 1.22–1.22.1               
    |
 | 2.1              | 2.11.0.4—2.14.x           | 1.22                        
  |
 | 2.0              | 2.11.0.4—2.11.x           | 1.22                        
  |
 | not supported    | 2.10                      | 1.21                          
|
@@ -120,3 +121,8 @@
 BSD3 license (following 
[`pandocfilters`](https://github.com/jgm/pandocfilters) by @jgm).
 
 
+## Changelog
+
+- `2.3.0` Update [Pandoc 
API](https://github.com/jgm/pandoc-types/blob/master/changelog) from 1.22 to 
1.23 ([Pandoc 3.0](https://pandoc.org/releases.html#pandoc-3.0-2023-01-18)):
+    - Add `Figure` block object
+    - Remove `Null` block object (scheduled for removed)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/panflute-2.2.3/panflute.egg-info/entry_points.txt 
new/panflute-2.3.0/panflute.egg-info/entry_points.txt
--- old/panflute-2.2.3/panflute.egg-info/entry_points.txt       2022-07-14 
17:30:25.000000000 +0200
+++ new/panflute-2.3.0/panflute.egg-info/entry_points.txt       2023-01-26 
07:25:16.000000000 +0100
@@ -1,4 +1,3 @@
 [console_scripts]
 panfl = panflute:panfl
 panflute = panflute:main
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/panflute-2.2.3/setup.py new/panflute-2.3.0/setup.py
--- old/panflute-2.2.3/setup.py 2022-07-14 17:30:15.000000000 +0200
+++ new/panflute-2.3.0/setup.py 2023-01-26 07:25:01.000000000 +0100
@@ -75,6 +75,7 @@
         'Programming Language :: Python :: 3.8',
         'Programming Language :: Python :: 3.9',
         'Programming Language :: Python :: 3.10',
+        'Programming Language :: Python :: 3.11',
         'Programming Language :: Python :: Implementation :: CPython',
         'Programming Language :: Python :: Implementation :: PyPy'
     ],

Reply via email to