Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-dataclasses-json for 
openSUSE:Factory checked in at 2026-06-02 19:54:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dataclasses-json (Old)
 and      /work/SRC/openSUSE:Factory/.python-dataclasses-json.new.1937 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-dataclasses-json"

Tue Jun  2 19:54:32 2026 rev:6 rq:1356785 version:0.6.7

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-dataclasses-json/python-dataclasses-json.changes
  2025-11-13 17:29:17.263994807 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-dataclasses-json.new.1937/python-dataclasses-json.changes
        2026-06-02 19:54:34.311224540 +0200
@@ -1,0 +2,6 @@
+Tue Jun  2 16:37:49 UTC 2026 - Markéta Machová <[email protected]>
+
+- Add support-marshmallow-4.patch (boo#1266046)
+  * Fix tests with marshmallow 4 changes.
+
+-------------------------------------------------------------------

New:
----
  support-marshmallow-4.patch

----------(New B)----------
  New:
- Add support-marshmallow-4.patch (boo#1266046)
  * Fix tests with marshmallow 4 changes.
----------(New E)----------

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

Other differences:
------------------
++++++ python-dataclasses-json.spec ++++++
--- /var/tmp/diff_new_pack.LhJ9NP/_old  2026-06-02 19:54:36.023295406 +0200
+++ /var/tmp/diff_new_pack.LhJ9NP/_new  2026-06-02 19:54:36.043296233 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-dataclasses-json
 #
-# 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
@@ -28,6 +28,8 @@
 Patch0:         support-poetry-core-2.patch
 # PATCH-FIX-UPSTREAM 
gh#lidatong/dataclasses-json#565/commits/20799887ff1d50dc6ca5d90bc1038ff5160b97f3
 Patch1:         support-python314.patch
+# PATCH-FIX-UPSTREAM gh#lidatong/dataclasses-json#577
+Patch2:         support-marshmallow-4.patch
 BuildRequires:  %{python_module hypothesis}
 BuildRequires:  %{python_module marshmallow}
 BuildRequires:  %{python_module mypy}

++++++ support-marshmallow-4.patch ++++++
Index: dataclasses-json-0.6.7/dataclasses_json/api.py
===================================================================
--- dataclasses-json-0.6.7.orig/dataclasses_json/api.py
+++ dataclasses-json-0.6.7/dataclasses_json/api.py
@@ -95,7 +95,6 @@ class DataClassJsonMixin(abc.ABC):
         return Schema(only=only,
                       exclude=exclude,
                       many=many,
-                      context=context,
                       load_only=load_only,
                       dump_only=dump_only,
                       partial=partial,
Index: dataclasses-json-0.6.7/dataclasses_json/mm.py
===================================================================
--- dataclasses-json-0.6.7.orig/dataclasses_json/mm.py
+++ dataclasses-json-0.6.7/dataclasses_json/mm.py
@@ -245,9 +245,11 @@ def build_type(type_, options, mixin, fi
 
         if is_dataclass(type_):
             if _issubclass_safe(type_, mixin):
-                options['field_many'] = bool(
-                    _is_supported_generic(field.type) and _is_collection(
-                        field.type))
+                options['metadata'] = {
+                    "field_many": bool(
+                        _is_supported_generic(field.type) and _is_collection(
+                            field.type))
+                    }
                 return fields.Nested(type_.schema(), **options)
             else:
                 warnings.warn(f"Nested dataclass field {field.name} of type "
@@ -305,7 +307,7 @@ def schema(cls, mixin, infer_missing):
         else:
             type_ = field.type
             options: typing.Dict[str, typing.Any] = {}
-            missing_key = 'missing' if infer_missing else 'default'
+            missing_key = 'load_default' if infer_missing else 'dump_default'
             if field.default is not MISSING:
                 options[missing_key] = field.default
             elif field.default_factory is not MISSING:

Reply via email to