Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-ini2toml for openSUSE:Factory 
checked in at 2026-06-05 14:56:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ini2toml (Old)
 and      /work/SRC/openSUSE:Factory/.python-ini2toml.new.2375 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-ini2toml"

Fri Jun  5 14:56:01 2026 rev:14 rq:1357048 version:0.15

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ini2toml/python-ini2toml.changes  
2025-08-22 17:47:02.522104125 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-ini2toml.new.2375/python-ini2toml.changes    
    2026-06-05 14:56:04.857837015 +0200
@@ -1,0 +2,6 @@
+Thu Jun  4 04:49:56 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch support-tomlkit-0.15.0.patch:
+  * Support tomlkit 0.15.0 by not using dumps()
+
+-------------------------------------------------------------------

New:
----
  support-tomlkit-0.15.0.patch

----------(New B)----------
  New:
- Add patch support-tomlkit-0.15.0.patch:
  * Support tomlkit 0.15.0 by not using dumps()
----------(New E)----------

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

Other differences:
------------------
++++++ python-ini2toml.spec ++++++
--- /var/tmp/diff_new_pack.oPgUXv/_old  2026-06-05 14:56:05.961882674 +0200
+++ /var/tmp/diff_new_pack.oPgUXv/_new  2026-06-05 14:56:05.961882674 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-ini2toml
 #
-# Copyright (c) 2025 SUSE LLC
+# 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
@@ -58,6 +58,8 @@
 License:        MPL-2.0
 URL:            https://github.com/abravalheri/ini2toml/
 Source:         
https://files.pythonhosted.org/packages/source/i/ini2toml/ini2toml-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM gh#abravalheri/ini2toml#132
+Patch0:         support-tomlkit-0.15.0.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools_scm}
 BuildRequires:  %{python_module setuptools}
@@ -74,7 +76,6 @@
 Requires(postun): update-alternatives
 %endif
 %if %{with test}
-BuildRequires:  %{python_module packaging >= 20.7}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module validate-pyproject >= 0.6 with 
%python-validate-pyproject < 2}
 %if %{with lite}
@@ -148,7 +149,7 @@
 %endif
 
 %prep
-%setup -q -n ini2toml-%{version}
+%autosetup -p1 -n ini2toml-%{version}
 sed -i 's/--cov ini2toml --cov-report term-missing//' setup.cfg
 
 %if !%{with test}
@@ -202,7 +203,7 @@
 %license LICENSE.txt
 %python_alternative %{_bindir}/ini2toml
 %{python_sitelib}/ini2toml
-%{python_sitelib}/ini2toml-%{version}*-info
+%{python_sitelib}/ini2toml-%{version}.dist-info
 
 %if %{with lite}
 %files %{python_files lite}

++++++ support-tomlkit-0.15.0.patch ++++++
>From c3af27a3a12d2cbe06e160f09284f18c04412796 Mon Sep 17 00:00:00 2001
From: Steve Kowalik <[email protected]>
Date: Thu, 4 Jun 2026 14:38:10 +1000
Subject: [PATCH] Use as_string() to get the value

tomlkit 0.15.0 has changed the behavior of dumps() to throw an exception
of things that aren't a container, so switch to using as_string()
instead. This should work with both 0.14.0 and 0.15.0.

Fixes #131
---
 src/ini2toml/drivers/full_toml.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ini2toml/drivers/full_toml.py 
b/src/ini2toml/drivers/full_toml.py
index c3b9570..50a865c 100644
--- a/src/ini2toml/drivers/full_toml.py
+++ b/src/ini2toml/drivers/full_toml.py
@@ -205,7 +205,7 @@ def _convert_irepr_to_toml(irepr: IntermediateRepr, out: T) 
-> T:
             if len(rest) == 1:
                 nested_key = rest[0]
                 collapsed_value = collapse(value)
-                collapsed_str = f"{nested_key} = {dumps(collapsed_value)}"
+                collapsed_str = f"{nested_key} = {collapsed_value.as_string()}"
                 simplified_str = collapsed_str.replace("= {}", "").replace("= 
[]", "")
                 # Force inline table for the simplest cases
                 if (

Reply via email to