Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-tomlkit for openSUSE:Factory 
checked in at 2024-03-13 22:20:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-tomlkit (Old)
 and      /work/SRC/openSUSE:Factory/.python-tomlkit.new.1770 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-tomlkit"

Wed Mar 13 22:20:50 2024 rev:17 rq:1157519 version:0.12.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-tomlkit/python-tomlkit.changes    
2023-11-27 22:45:16.438036620 +0100
+++ /work/SRC/openSUSE:Factory/.python-tomlkit.new.1770/python-tomlkit.changes  
2024-03-13 22:22:11.060250093 +0100
@@ -1,0 +2,8 @@
+Wed Mar 13 10:17:11 UTC 2024 - Dirk Müller <dmuel...@suse.com>
+
+- update to 0.12.4:
+  * Support `|` and `|=` operator for tables, and support `+` and
+    `+=` operator for arrays.
+  * Fix an index error when setting dotted keys in a table.
+
+-------------------------------------------------------------------

Old:
----
  tomlkit-0.12.3.tar.gz

New:
----
  tomlkit-0.12.4.tar.gz

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

Other differences:
------------------
++++++ python-tomlkit.spec ++++++
--- /var/tmp/diff_new_pack.UNYLCM/_old  2024-03-13 22:22:12.648308705 +0100
+++ /var/tmp/diff_new_pack.UNYLCM/_new  2024-03-13 22:22:12.648308705 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-tomlkit
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # 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 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-tomlkit
-Version:        0.12.3
+Version:        0.12.4
 Release:        0
 Summary:        Style preserving TOML library
 License:        MIT

++++++ tomlkit-0.12.3.tar.gz -> tomlkit-0.12.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tomlkit-0.12.3/CHANGELOG.md 
new/tomlkit-0.12.4/CHANGELOG.md
--- old/tomlkit-0.12.3/CHANGELOG.md     2023-11-15 01:39:35.862209000 +0100
+++ new/tomlkit-0.12.4/CHANGELOG.md     2024-02-27 05:05:18.414436600 +0100
@@ -1,6 +1,11 @@
 # Change Log
 
-## [Unreleased]
+## [0.12.4] - 2024-02-27
+
+### Fixed
+
+- Support `|` and `|=` operator for tables, and support `+` and `+=` operator 
for arrays. ([#331](https://github.com/sdispater/tomlkit/issues/331))
+- Fix an index error when setting dotted keys in a table. 
([#332](https://github.com/sdispater/tomlkit/issues/332))
 
 ## [0.12.3] - 2023-11-15
 
@@ -381,7 +386,8 @@
 - Fixed handling of super tables with different sections.
 - Fixed raw strings escaping.
 
-[unreleased]: https://github.com/sdispater/tomlkit/compare/0.12.2...master
+[unreleased]: https://github.com/sdispater/tomlkit/compare/0.12.4...master
+[0.12.4]: https://github.com/sdispater/tomlkit/releases/tag/0.12.4
 [0.12.3]: https://github.com/sdispater/tomlkit/releases/tag/0.12.3
 [0.12.2]: https://github.com/sdispater/tomlkit/releases/tag/0.12.2
 [0.12.1]: https://github.com/sdispater/tomlkit/releases/tag/0.12.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tomlkit-0.12.3/PKG-INFO new/tomlkit-0.12.4/PKG-INFO
--- old/tomlkit-0.12.3/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
+++ new/tomlkit-0.12.4/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: tomlkit
-Version: 0.12.3
+Version: 0.12.4
 Summary: Style preserving TOML library
 Home-page: https://github.com/sdispater/tomlkit
 License: MIT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tomlkit-0.12.3/pyproject.toml 
new/tomlkit-0.12.4/pyproject.toml
--- old/tomlkit-0.12.3/pyproject.toml   2023-11-15 01:39:35.862209000 +0100
+++ new/tomlkit-0.12.4/pyproject.toml   2024-02-27 05:05:18.418436500 +0100
@@ -1,6 +1,6 @@
 [tool.poetry]
 name = "tomlkit"
-version = "0.12.3"
+version = "0.12.4"
 description = "Style preserving TOML library"
 authors = [
     "Sébastien Eustace <sebast...@eustace.io>",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tomlkit-0.12.3/tomlkit/__init__.py 
new/tomlkit-0.12.4/tomlkit/__init__.py
--- old/tomlkit-0.12.3/tomlkit/__init__.py      2023-11-15 01:39:35.878209000 
+0100
+++ new/tomlkit-0.12.4/tomlkit/__init__.py      2024-02-27 05:05:18.434436600 
+0100
@@ -27,7 +27,7 @@
 from tomlkit.api import ws
 
 
-__version__ = "0.12.3"
+__version__ = "0.12.4"
 __all__ = [
     "aot",
     "array",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tomlkit-0.12.3/tomlkit/_types.py 
new/tomlkit-0.12.4/tomlkit/_types.py
--- old/tomlkit-0.12.3/tomlkit/_types.py        2023-11-15 01:39:35.882209300 
+0100
+++ new/tomlkit-0.12.4/tomlkit/_types.py        2024-02-27 05:05:18.434436600 
+0100
@@ -43,9 +43,27 @@
     class _CustomList(MutableSequence, list):
         """Adds MutableSequence mixin while pretending to be a builtin list"""
 
+        def __add__(self, other):
+            new_list = self.copy()
+            new_list.extend(other)
+            return new_list
+
+        def __iadd__(self, other):
+            self.extend(other)
+            return self
+
     class _CustomDict(MutableMapping, dict):
         """Adds MutableMapping mixin while pretending to be a builtin dict"""
 
+        def __or__(self, other):
+            new_dict = self.copy()
+            new_dict.update(other)
+            return new_dict
+
+        def __ior__(self, other):
+            self.update(other)
+            return self
+
     class _CustomInt(Integral, int):
         """Adds Integral mixin while pretending to be a builtin int"""
 
@@ -54,7 +72,7 @@
 
 
 def wrap_method(
-    original_method: Callable[Concatenate[WT, P], Any]
+    original_method: Callable[Concatenate[WT, P], Any],
 ) -> Callable[Concatenate[WT, P], Any]:
     def wrapper(self: WT, *args: P.args, **kwargs: P.kwargs) -> Any:
         result = original_method(self, *args, **kwargs)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tomlkit-0.12.3/tomlkit/container.py 
new/tomlkit-0.12.4/tomlkit/container.py
--- old/tomlkit-0.12.3/tomlkit/container.py     2023-11-15 01:39:35.882209300 
+0100
+++ new/tomlkit-0.12.4/tomlkit/container.py     2024-02-27 05:05:18.434436600 
+0100
@@ -227,9 +227,9 @@
                     if item.is_super_table():
                         # We need to merge both super tables
                         if (
-                            self._table_keys[-1] != current_body_element[0]
-                            or key.is_dotted()
+                            key.is_dotted()
                             or current_body_element[0].is_dotted()
+                            or self._table_keys[-1] != current_body_element[0]
                         ):
                             if key.is_dotted() and not self._parsed:
                                 idx = self._get_last_index_before_table()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tomlkit-0.12.3/tomlkit/items.py 
new/tomlkit-0.12.4/tomlkit/items.py
--- old/tomlkit-0.12.3/tomlkit/items.py 2023-11-15 01:39:35.882209300 +0100
+++ new/tomlkit-0.12.4/tomlkit/items.py 2024-02-27 05:05:18.434436600 +0100
@@ -1412,6 +1412,7 @@
                 if (
                     idx == 0
                     and len(self._value) > 0
+                    and self._value[idx].indent
                     and "\n" not in self._value[idx].indent.s
                 ):
                     # Remove the indentation of the first item if not newline

Reply via email to