Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-gi-docgen for 
openSUSE:Factory checked in at 2026-01-28 15:07:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-gi-docgen (Old)
 and      /work/SRC/openSUSE:Factory/.python-gi-docgen.new.1928 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-gi-docgen"

Wed Jan 28 15:07:04 2026 rev:15 rq:1329299 version:2026.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-gi-docgen/python-gi-docgen.changes        
2025-10-14 18:08:25.687064653 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-gi-docgen.new.1928/python-gi-docgen.changes  
    2026-01-28 15:07:59.544109862 +0100
@@ -1,0 +2,8 @@
+Sat Jan 24 07:48:25 UTC 2026 - Bjørn Lie <[email protected]>
+
+- Update to version 2026.1:
+  + Added: Parse method-inline for records, unions and interfaces
+  + Changed: Use dot's svg_inline output format
+  + Fixed: Fix Red Hat Display italic font-face
+
+-------------------------------------------------------------------

Old:
----
  gi_docgen-2025.5.tar.gz

New:
----
  gi_docgen-2026.1.tar.gz

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

Other differences:
------------------
++++++ python-gi-docgen.spec ++++++
--- /var/tmp/diff_new_pack.5Ar47g/_old  2026-01-28 15:08:00.168135782 +0100
+++ /var/tmp/diff_new_pack.5Ar47g/_new  2026-01-28 15:08:00.172135948 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-gi-docgen
 #
-# 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
@@ -18,7 +18,7 @@
 
 %define pythons python3
 Name:           python-gi-docgen
-Version:        2025.5
+Version:        2026.1
 Release:        0
 Summary:        A documentation generator for GObject-based libraries
 # For reference, as some scripts are known to reorder things:

++++++ gi_docgen-2025.5.tar.gz -> gi_docgen-2026.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gi_docgen-2025.5/CHANGES.md 
new/gi_docgen-2026.1/CHANGES.md
--- old/gi_docgen-2025.5/CHANGES.md     2025-10-11 15:22:12.000000000 +0200
+++ new/gi_docgen-2026.1/CHANGES.md     2026-01-23 18:54:00.000000000 +0100
@@ -12,6 +12,20 @@
 
 ### Removed
 
+## [2026.1] - 2026-01-23
+
+### Added
+
+- Parse method-inline for records, unions and interfaces [#173]
+
+### Changed
+
+- Use dot's `svg_inline` output format [!251]
+
+### Fixed
+
+- Fix Red Hat Display italic font-face [!257]
+
 ## [2025.5] - 2025-10-11
 
 ### Fixed
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gi_docgen-2025.5/PKG-INFO 
new/gi_docgen-2026.1/PKG-INFO
--- old/gi_docgen-2025.5/PKG-INFO       2025-10-11 15:23:18.004135400 +0200
+++ new/gi_docgen-2026.1/PKG-INFO       2026-01-23 18:56:26.415907400 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: gi-docgen
-Version: 2025.5
+Version: 2026.1
 Summary: Documentation tool for GObject-based libraries
 Home-page: https://gitlab.gnome.org/GNOME/gi-docgen
 Author: Emmanuele Bassi
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gi_docgen-2025.5/gi_docgen.egg-info/PKG-INFO 
new/gi_docgen-2026.1/gi_docgen.egg-info/PKG-INFO
--- old/gi_docgen-2025.5/gi_docgen.egg-info/PKG-INFO    2025-10-11 
15:23:17.000000000 +0200
+++ new/gi_docgen-2026.1/gi_docgen.egg-info/PKG-INFO    2026-01-23 
18:56:26.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: gi-docgen
-Version: 2025.5
+Version: 2026.1
 Summary: Documentation tool for GObject-based libraries
 Home-page: https://gitlab.gnome.org/GNOME/gi-docgen
 Author: Emmanuele Bassi
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gi_docgen-2025.5/gidocgen/core.py 
new/gi_docgen-2026.1/gidocgen/core.py
--- old/gi_docgen-2025.5/gidocgen/core.py       2025-10-11 15:23:05.000000000 
+0200
+++ new/gi_docgen-2026.1/gidocgen/core.py       2026-01-23 18:51:33.000000000 
+0100
@@ -1,4 +1,4 @@
 # SPDX-FileCopyrightText: 2020 GNOME Foundation <https://gnome.org>
 # SPDX-License-Identifier: Apache-2.0 OR GPL-3.0-or-later
 
-version = "2025.5"
+version = "2026.1"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gi_docgen-2025.5/gidocgen/gir/parser.py 
new/gi_docgen-2026.1/gidocgen/gir/parser.py
--- old/gi_docgen-2025.5/gidocgen/gir/parser.py 2025-02-07 15:21:42.000000000 
+0100
+++ new/gi_docgen-2026.1/gidocgen/gir/parser.py 2026-01-23 18:50:14.000000000 
+0100
@@ -951,6 +951,9 @@
         children = node.findall('core:method', GI_NAMESPACES)
         for child in children:
             methods.append(self._parse_method(child))
+        children = node.findall('core:method-inline', GI_NAMESPACES)
+        for child in children:
+            methods.append(self._parse_method(child, inline=True))
 
         vmethods = []
         children = node.findall('core:virtual-method', GI_NAMESPACES)
@@ -1036,6 +1039,10 @@
         for child in children:
             methods.append(self._parse_method(child))
 
+        children = node.findall('core:method-inline', GI_NAMESPACES)
+        for child in children:
+            methods.append(self._parse_method(child, inline=True))
+
         functions = []
         children = node.findall('core:function', GI_NAMESPACES)
         for child in children:
@@ -1080,6 +1087,10 @@
         for child in children:
             methods.append(self._parse_method(child))
 
+        children = node.findall('core:method-inline', GI_NAMESPACES)
+        for child in children:
+            methods.append(self._parse_method(child, inline=True))
+
         functions = []
         children = node.findall('core:function', GI_NAMESPACES)
         for child in children:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gi_docgen-2025.5/gidocgen/templates/basic/fonts.css 
new/gi_docgen-2026.1/gidocgen/templates/basic/fonts.css
--- old/gi_docgen-2025.5/gidocgen/templates/basic/fonts.css     2023-04-07 
01:44:33.000000000 +0200
+++ new/gi_docgen-2026.1/gidocgen/templates/basic/fonts.css     2026-01-23 
18:50:14.000000000 +0100
@@ -25,8 +25,8 @@
 @font-face {
   font-family: "Red Hat Display";
   src: local('RedHatDisplayWeb'),
-       url("RedHatDisplay-RegularItalic.woff2") format("woff2"),
-       url("RedHatDisplay-RegularItalic.woff") format("woff");
+       url("RedHatDisplay-Italic.woff2") format("woff2"),
+       url("RedHatDisplay-Italic.woff") format("woff");
   font-style: italic;
   font-weight: 400;
   font-display: fallback;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gi_docgen-2025.5/gidocgen/utils.py 
new/gi_docgen-2026.1/gidocgen/utils.py
--- old/gi_docgen-2025.5/gidocgen/utils.py      2024-08-11 21:06:12.000000000 
+0200
+++ new/gi_docgen-2026.1/gidocgen/utils.py      2026-01-23 18:50:14.000000000 
+0100
@@ -858,14 +858,16 @@
 def render_dot(dot, output_format="svg"):
     if output_format not in ["svg", "png"]:
         log.error("Invalid output format for render_dot(): {output_format}")
+    if output_format == "svg":
+        output_arg = "-Tsvg_inline"
+    else:
+        output_arg = f"-T{output_format}"
 
     dot_bin = find_program("dot")
     if not dot_bin:
         return None
 
-    args = []
-    args.append(dot_bin)
-    args.append(f"-T{output_format}")
+    args = [dot_bin, output_arg]
 
     try:
         proc = subprocess.Popen(args, stdin=subprocess.PIPE, 
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
@@ -874,21 +876,7 @@
         if proc.returncode:
             log.warning(f"Unable to process dot data: {err}")
             return None
-        if output_format == "svg":
-            svg = output.decode("utf-8")
-            res = []
-            # The SVG generated by dot is meant to be used as a separate file, 
so
-            # it includes the XML version and DOCTYPE preambles; this generates
-            # invalid HTML when embedded into a web page.
-            for line in svg.split("\n"):
-                if line.startswith("<?xml version"):
-                    continue
-                if line.startswith("<!DOCTYPE svg"):
-                    continue
-                if "svg11.dtd" in line:
-                    continue
-                res.append(line)
-            return "\n".join(res)
+        return output.decode("utf-8")
     except Exception as e:
         log.warning(f"Unable to process dot data: {e}")
         return None
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gi_docgen-2025.5/meson.build 
new/gi_docgen-2026.1/meson.build
--- old/gi_docgen-2025.5/meson.build    2025-10-11 15:23:05.000000000 +0200
+++ new/gi_docgen-2026.1/meson.build    2026-01-23 18:51:22.000000000 +0100
@@ -3,7 +3,7 @@
 # SPDX-License-Identifier: Apache-2.0 OR GPL-3.0-or-later
 
 project('gi-docgen',
-  version: '2025.5',
+  version: '2026.1',
   meson_version: '>= 0.55.0',
 )
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gi_docgen-2025.5/tests/test_utils.py 
new/gi_docgen-2026.1/tests/test_utils.py
--- old/gi_docgen-2025.5/tests/test_utils.py    2024-07-29 11:46:34.000000000 
+0200
+++ new/gi_docgen-2026.1/tests/test_utils.py    2026-01-23 18:50:14.000000000 
+0100
@@ -184,3 +184,15 @@
                         "`GDBusProxy:g-connection` must be `NULL` and will be 
set to the")
         self.assertTrue(mdext.process_gtkdoc_sigils("#GDBusProxy:g-name-owner. 
Connect to the #GObject::notify signal"),
                         "`GDBusProxy:g-name-owner`. Connect to the 
`GObject::notify` signal")
+
+
+class TestDotRenderer(unittest.TestCase):
+
+    def test_render_dot(self):
+        graph_definition = "digraph G { a -> b; }"
+        svg_data = utils.render_dot(graph_definition, output_format="svg")
+        self.assertTrue("<svg" in svg_data)
+        self.assertTrue("</svg>" in svg_data)
+        self.assertTrue("<?xml" not in svg_data)
+        self.assertTrue("DOCTYPE" not in svg_data)
+

Reply via email to