------------------------------------------------------------------- Sun Mar 29 17:53:31 UTC 2026 - Dirk Müller - update to 4.2.3: * Make marshmallow.fields.Number and marshmallow.fields.Mapping abstract base classes to prevent using them within Schemas (:issue:`2924`). Thanks :user:`MartingaleCoda` for reporting. * Allow required to be set on marshmallow.fields.Contant (:issue:`2900`). Thanks :user:`nosnickid` for the report and :user:`worksbyfriday` for the PR. * Fix marshmallow.validate.OneOf emitting extra pairs when labels outnumber choices (:issue:`2869`). Thanks: user:T90REAL for the report and :user:`rstar327` for the PR. * Fix behavior when passing a dot-delited attribute name to partial for a key with data_key set (:pr:`2903`). Thanks :user:`bysiber` for the PR. * Fix Enum field by-name lookup to only return actual members (:pr:`2902`). Thanks :user:`bysiber` for the PR. * marshmallow.fields.DateTime with format="timestamp_ms" properly rejects bool values (:pr:`2904`). Thanks :user:`bysiber` for the PR. * Fix typing of error_essages argument to marshmallow.fields.Field (:pr:`1636`). Thanks :user:`repole` for reporting and :user:`dhruvildarji` for the PR. * Add ipaddress.* to marshmallow.Schema.TYPE_MAPPING (:issue:`1695`). Thanks :user:`liberforce` for the suggestion and :user:`dhruvildarji` for the PR. * Fix behavior of fields.Contant(None) (:issue:`2868`). Thanks :user:`T90REAL` for reporting and emmanuel-ferdman for the fix. * Fix validation of URLs beginning with uppercare FILE (:issue:`2891`). Thanks :user:`thanhlecongg` for reporting and fixing. * many argument of Nested properly overrides schema instance value (:pr:`2854`). Thanks :user:`jafournier` for the PR. * :cve:`2025-68480`: Merge error store messages without rebuilding collections. Thanks 카푸치노 for reporting and :user:`deckar01` for the fix. * Ensure URL validator is case-insensitive when using custom schemes (:pr:`2874`). Thanks :user:`T90REAL` for the PR. * Add __len__ implementation to missing so that it can be used with validate.Length (:pr:`2861`). Thanks :user:`agentgodzilla` for the PR. * Drop support for Python 3.9 (:pr:`2363`). * Test against Python 3.14 (:pr:`2864`). * Fix wildcard import of from marshmallow import * (:pr:`2823`). Thanks :user:`Florian-Laport` for the PR. * Typing: Add types to all Field constructor kwargs (:issue:`2285`). Thanks :user:`navignaw` for the suggestion. - update dependencies: * remove packaging dependency * add backports-datetime-fromisoformat and typing-extensions for python < 3.11 * update flit-core to >= 3.12 * update base to >= 3.10 * remove python-dateutil suggestion * DateTime , Date , Time , TimeDelta , and Enum accept their internal value types as valid input (:issue:`1415`). Thanks :user:`bitdancer` for the suggestion. * @validates accepts multiple field names (:issue:`1960`). Backwards-incompatible: Decorated methods now receive data_key as a keyword argument. Thanks :user:`dpriskorn` for the suggestion and :user:`dharani7998` for the PR. * Typing: Field is now a generic type with a type argument for the internal value type. * marshmallow.fields.UUID no longer subclasses marshmallow.fields.String. * marshmallow.Schema.load no longer silently fails to call schema validators when a generator is passed (:issue:`1898`). The typing of data is also updated to be more accurate. Thanks :user:`ziplokk1` for reporting. * Backwards-incompatible: Use datetime.date.fromisoformat, datetime.time.fromisoformat, and datetime.datetime.fromisoformat from the standard library to deserialize dates, times and datetimes (:pr:`2078`). * Time with time offsets are now supported. * YYYY-MM-DD is now accepted as a datetime and deserialized as naive 00:00 AM. * from_iso_date, from_iso_time and from_iso_datetime are removed from marshmallow.utils. * Remove isoformat, to_iso_time and to_iso_datetime from marshmallow.utils (:pr:`2766`). * Remove from_rfc, and rfcformat from marshmallow.utils (:pr:`2767`). * Remove is_keyed_tuple from marshmallow.utils (:pr:`2768`). * Remove get_fixed_timezone from marshmallow.utils (:pr:`2773`). * Backwards-incompatible: marshmallow.fields.Boolean no longer serializes non-boolean values (:pr:`2725`). * Backwards-incompatible: Rename schema parameter to parent in marshmallow.fields.Field._bind_to_schema (:issue:`1360`). * Backwards-incompatible: Rename pass_many parameter to pass_collection in pre/post processing methods (:issue:`1369`). * Backwards-incompatible: marshmallow.fields.TimeDelta no longer truncates float values when deserializing (:pr:`2654`). This allows microseconds to be preserved, e.g. * Improve performance and minimize float precision loss of marshmallow.fields.TimeDelta serialization (:pr:`2654`). * Backwards-incompatible: Remove serialization_type parameter from marshmallow.fields.TimeDelta (:pr:`2654`). * Backwards-incompatible: Remove Schema 's context attribute (deprecated since 3.24.0). Passing a context should be done using contextvars.ContextVar (:issue:`1826`). marshmallow 4 provides an experimental Context manager class that can be used to both set and retrieve context. * Methods decorated with marshmallow.pre_load, marshmallow.post_load, marshmallow.validates_schema, receive unknown as a keyword argument (:pr:`1632`). Thanks :user:`jforand` for the PR. * Backwards-incompatible: Arguments to decorators are keyword-only arguments. * Backwards-incompatible: Rename json_data parameter of marshmallow.Schema.loads to s for compatibility with most render module implementations (json, simplejson, etc.) (:pr:`2764`). Also make it a positional-only argument. * Incorrectly declaring a field using a field class rather than instance errors at class declaration time (previously happended when the schema was instantiated) (:pr:`2772`). * Passing invalid values for unknown will cause an error in type checkers (:pr:`2771`). * Backwards-incompatible: Remove implicit field creation, i.e. using the fields or additional class Meta options with undeclared fields (:issue:`1356`). * The ordered class Meta option is removed (:issue:`2146`). Field order is already preserved by default. Set Schema.dict_class to OrderedDict to maintain the previous behavior. * The marshmallow.base module is removed (:pr:`2722`). * The ordered class Meta option is removed (:issue:`2146`) (deprecated in 3.26.0). * Backwards-incompatible: marshmallow.fields.Number is no longer usable as a field in a schema (deprecated in 3.24.0). Use marshmallow.fields.Integer, marshmallow.fields.Float, or marshmallow.fields.Decimal instead. * Backwards-incompatible: marshmallow.fields.Mapping is no longer usable as a field in a schema (deprecated in 3.24.0). * Backwards-incompatible: Custom validators must raise a ValidationError for invalid values (deprecated in 3.24.0). Returning False is no longer supported (:issue:`1775`). Use marshmallow.fields.Dict instead. * Remove __version__, __parsed_version__, and __version_info__ attributes (deprecated in 3.21.0). * default and missing parameters, which were replaced by dump_default and load_default in 3.13.0 (:pr:`1742`, :pr:`2700`). * Passing field metadata via keyword arguments (deprecated in 3.10.0). Use the explicit metadata=... argument instead (:issue:`1350`). * marshmallow.utils.pprint (deprecated in 3.7.0). Use pprint.pprint instead. * Passing "self" to fields.Nested (deprecated in 3.3.0). Use a callable instead. * Field.fail, which was replaced by Field.make_error in 3.0.0. * json_module class Meta option (deprecated in 3.0.0b3). Use render_module instead. ------------------------------------------------------------------- Mon Dec 29 13:59:28 UTC 2025 - Markéta Machová - update to 3.26.2 (bsc#1255473) * __version__, __parsed_version__, and __version_info__ attributes are deprecated (:issue:`2227`). Use feature detection or importlib.metadata.version("marshmallow") instead. * Add many Meta option to Schema so it expects a collection by default. * Drop support for Python 3.8. * Improve type hint formatting for Field, Nested, and Function fields to resolve PyCharm warnings. * Custom validators should raise a ValidationError for invalid values. * Deprecate context parameter of Schema. * Field, Mapping, and Number should no longer be used as fields within schemas. Use their subclasses instead. * Typing: Improve type annotations * CVE-2025-68480: Merge error store messages without rebuilding collections. - Drop python-marshmallow-no-version-warning.patch, fixed upstream ------------------------------------------------------------------- Sun Oct 27 22:54:09 UTC 2024 - Stefan Brüns - Add python-packaging to Requires, as stated in pyproject.toml. ------------------------------------------------------------------- Tue Mar 26 12:35:03 UTC 2024 - John Paul Adrian Glaubitz - Switch build system from setuptools to pyproject.toml + Add python-pip and python-wheel to BuildRequires + Replace %python_build with %pyproject_wheel + Replace %python_install with %pyproject_install - Limit Python files matched in %files section ------------------------------------------------------------------- Tue Jan 16 15:06:21 UTC 2024 - Dirk Müller - update to 3.20.2: * Bug fixes: - Fix Nested field type hint for lambda Schema types (:pr:`2164`). * Other changes: - Officially support Python 3.12 (:pr:`2188`). ------------------------------------------------------------------- Sun Dec 10 21:27:36 UTC 2023 - Dirk Müller - update to 3.20.1: * Fix call to ``get_declared_fields``: pass ``dict_cls`` again * Add ``absolute`` parameter to ``URL`` validator and ``Url`` * Use Abstract Base Classes to define ``FieldABC`` and ``SchemaABC`` * Use `OrderedSet` as default `set_class`. Schemas are now ordered by default. * Handle ``OSError`` and ``OverflowError`` in ``utils.from_timestamp`` (:pr:`2102`). * Fix the default inheritance of nested partial schemas * Officially support Python 3.11 (:pr:`2067`). * Drop support for Python 3.7 (:pr:`2135`). ------------------------------------------------------------------- Sun Apr 23 23:12:16 UTC 2023 - Matej Cepl - Switch documentation to be within the main package on SLE15 ------------------------------------------------------------------- Fri Apr 21 12:28:05 UTC 2023 - Dirk Müller - add sle15_python_module_pythons (jsc#PED-68) ------------------------------------------------------------------- Thu Apr 13 22:42:33 UTC 2023 - Matej Cepl - Make calling of %{sle15modernpython} optional. ------------------------------------------------------------------- Thu Mar 16 08:45:51 UTC 2023 - Dirk Müller - rename docs subpackage to the more common doc name ------------------------------------------------------------------- Wed Mar 15 14:54:45 UTC 2023 - Matej Cepl - We want "modern" Sphinx on SLE-15, not the 3.6-based one. ------------------------------------------------------------------- Fri Dec 2 20:31:35 UTC 2022 - Yogalakshmi Arunachalam - Update to 3.19.0 * Add timestamp and timestamp_ms formats to fields.DateTime (#612). Thanks @vgavro for the suggestion and thanks @vanHoi for the PR. ------------------------------------------------------------------- Fri Oct 28 18:21:19 UTC 2022 - Yogalakshmi Arunachalam - Update to 3.18.0 (2022-09-15)¶ Features: Add Enum field (#2017) and (#2044). Bug fixes: Fix typing in Field._serialize signature (#2046). ------------------------------------------------------------------- Thu Sep 29 15:53:34 UTC 2022 - Yogalakshmi Arunachalam - Update to 3.17.1 (2022-08-22) Bug fixes: Add return type to fields.Email.__init__ (#2018). Thanks @kkirsche for the PR. Add missing type hint to IPInterface __init__ (#2036). - Update to 3.17.0 (2022-06-26) Features: Support serialization as float in TimeDelta field (#1998). Thanks @marcosatti for the PR. Add messages_dict property to ValidationError to facilitate type checking (#1976). Thanks @sirosen for the PR. - Update to 3.16.0 (2022-05-29) Features: Raise ValueError if an invalid value is passed to the unknown argument (#1721, #1732). Thanks @sirosen for the PR. Other changes: Set lower bound for packaging requirement (#1957). Thanks @MatthewNicolTR for reporting and thanks @sirosen for the PR. Improve warning messages by passing stacklevel (#1986). Thanks @tirkarthi for the PR. - Update to 3.15.0 (2022-03-12) Features: Allow passing a dict to fields.Nested (#1935). Thanks @sirosen for the PR. Other changes: distutils deprecation warning in Python 3.10 (#1903). Thanks @kkirsche for the PR. Add py310 to black target-version (#1921). Drop support for Python 3.6 (#1923). ------------------------------------------------------------------- Sun May 29 17:59:12 UTC 2022 - Torsten Gruner - Update to 3.14.1 (2021-11-13) * Fix publishing type hints per PEP-561 (#1905). Thanks @bwindsor for the catch and patch. - Release 3.14.0 (2021-10-17) * Fix fields.TimeDelta serialization precision (#1865). Thanks @yarsanich for reporting. * Fix type-hints for `data` arg in `Schema.validate` to accept list of dictionaries (#1790, #1868). Thanks @yourun-proger for PR. * Improve warning when passing metadata as keyword arguments (#1882). Thanks @traherom for the PR. * Don’t build universal wheels. We don’t support Python 2 anymore. (#1860) Thanks @YKdvd for reporting. * Make the build reproducible (#1862). * Drop support for Python 3.5 (#1863). * Test against Python 3.10 (#1888). - Release 3.13.0 (2021-07-21) * Replace missing/default field parameters with load_default/dump_default (#1742). Thanks @sirosen for the PR. * The use of missing/default field parameters is deprecated and will be removed * in marshmallow 4. load_default/dump_default should be used instead. - Release 3.12.2 (2021-07-06) * Don’t expose Fields as Schema attributes. This reverts a change introduced in 3.12.0 that causes issues when field names conflict with Schema attributes or methods. Fieldss are still accessible on a Schema instance through the fields attribute. (#1843) - Release 3.12.1 (2021-05-10) * Fix bug that raised an AttributeError when instantiating a Schema with a field named parent (#1808). Thanks @flying-sheep for reporting and helping with the fix. - Release 3.12.0 (2021-05-09) * Add validate.And (#1768). Thanks @rugleb for the suggestion. * Add type annotations to marshmallow.decorators (#1788, #1789). Thanks @michaeldimchuk for the PR. * Let Fields be accessed by name as Schema attributes (#1631). * Improve types in marshmallow.validate (#1786). * Make marshmallow.validate.Validator an abstract base class (#1786). * Remove unnecessary list cast (#1785). ------------------------------------------------------------------- Thu Apr 22 09:42:48 UTC 2021 - Ben Greiner - Update to 3.11.1 * Fix treatment of dotted keys when unknown=INCLUDE (#1506). Thanks @rbu for reporting and thanks @sirosen for the fix (#1745). - Release 3.11.0 * Add fields.IPInterface, fields.IPv4Interface, and IPv6Interface (#1733). Thanks @madeinoz67 for the suggestion and the PR. * Raise AttributeError for missing methods when using fields. Method (#1675). Thanks @lassandroan. * Remove unnecessary hasattr and getattr checks in Field (#1770). - Release 3.10.0 * Passing field metadata via keyword arguments is deprecated and will be removed in marshmallow 4 (#1350). Use the explicit metadata=... argument instead. Thanks @sirosen. - Release 3.9.1 * Cast to mapping type in Mapping.serialize and Mapping. deserialize (#1685). * Fix bug letting Dict pass invalid dict on deserialization when no key or value Field is specified (#1685). - Release 3.9.0 * Add format argument to fields.Time and timeformat class Meta option (#686). Thanks @BennyAlex for the suggestion and thanks @infinityxxx for the PR. * Remove usage of implicit typing.Optional (#1663). Thanks @nadega for the PR. - Release 3.8.0 * Add fields.IP, fields.IPv4 and fields.IPv6 (#1485). Thanks @mgetka for the PR. * Fix typing in AwareDateTime (#1658). Thanks @adithyabsk for reporting. - Use the python3 sphinx_build do build the docs gh#openSUSE/python-rpm-macros#109 ------------------------------------------------------------------- Fri Aug 21 06:15:41 UTC 2020 - Steve Kowalik - Update to 3.7.1: * Deprecations: + `marshmallow.pprint` is deprecated and will be removed in marshmallow 4 (:issue:`1588`). * Features: + Add ``validators.ContainsNoneOf`` (:issue:`1528`). * Bug fixes: + Fix typing in ``class_registry`` (:pr:`1574`). Thanks :user:`mahenzon`. + Fix passing ``only`` and ``exclude`` to ``Nested`` with an ordered ``Schema`` (:pr:`1627`). + ``fields.Boolean`` correctly serializes non-hashable types (:pr:`1633`). - Refresh patch python-marshmallow-no-version-warning.patch ------------------------------------------------------------------- Wed Apr 1 09:10:03 UTC 2020 - pgajdos@suse.com - version update to 3.5.1 - Includes bug fix from 2.21.0. - Fix list of nullable nested fields ``List(Nested(Field, allow_none=True)`` (:issue:`1497`). Because this fix reverts an optimization introduced to speed-up serialization and deserialization of lists of nested fields, a negative impact on performance in this specific case is expected. - Improve type coverage (:issue:`1479`). Thanks :user:`Reskov`. - Fix typing for ``data`` param of ``Schema.load`` and ``ValidationError`` (:issue:`1492`). Thanks :user:`mehdigmira` for reporting and thanks :user:`dfirst` for the PR. - Remove unnecessary typecasts (:pr:`1500`). Thanks :user:`hukkinj1`. - Remove useless ``_serialize`` override in ``UUID`` field (:pr:`1489`). - ``fields.Nested`` may take a callable that returns a schema instance. Use this to resolve order-of-declaration issues when schemas nest each other (:issue:`1146`). - Passing the string ``"self"`` to ``fields.Nested`` is deprecated. Use a callable instead. - Fix typing for ``Number._format_num`` (:pr:`1466`). Thanks :user:`hukkinj1`. - Make mypy stricter and remove dead code (:pr:`1467`). Thanks again, :user:`hukkinj1`. ------------------------------------------------------------------- Wed Nov 13 15:40:31 UTC 2019 - Sebastian Wagner - Update to version 3.2.2: - Bug fixes: - Don't load fields for which ``load_only`` and ``dump_only`` are both ``True`` (:pr:`1448`). - Fix types in ``marshmallow.validate`` (:pr:`1446`). - Support: - Test against Python 3.8 (pr:`1431`). ------------------------------------------------------------------- Tue Oct 8 15:03:26 UTC 2019 - Marketa Calabkova - Update to 3.2.1 * Fix typing for Schema.dump[s] * Fix compatibility with Python < 3.5.3 * Fix bug that raised an uncaught error when a nested schema instance had an unpickleable object in its context * Fix propagating dot-delimited only and exclude parameters to nested schema instances * Few bug fixes ------------------------------------------------------------------- Wed Sep 11 12:45:35 UTC 2019 - Tomáš Chvátal - Update to 3.0.3: * Handle when data_key is an empty string * Includes bug fix from 2.20.3 * Fix incorrect super() call in SchemaMeta.__init__ ------------------------------------------------------------------- Mon Aug 26 14:10:28 UTC 2019 - Marketa Calabkova - Update to 3.0.1 (bsc#1109179, CVE-2018-17175): * Many changes, some of them breaking. For example: * Remove support for Python 2 (#1120). Only Python>=3.5 is supported. * Allow input value to be included in error messages for a number of fields. * Change ordering of keys and values arguments to fields.Dict. * Please read upstream changelog. - Drop upstreamed patches reproducible.patch and pytest5.patch ------------------------------------------------------------------- Wed Jul 31 09:13:51 UTC 2019 - Tomáš Chvátal - Add patch to fix building with pytest5 from upstream git: * pytest5.patch ------------------------------------------------------------------- Wed Jul 24 07:53:46 UTC 2019 - Tomáš Chvátal - Update to 2.19.5: * Fix deserializing ISO8601-formatted datetimes with less than 6-digit miroseconds (:issue:`1251`). Thanks :user:`diego-plan9` for reporting. * Microseconds no longer gets lost when deserializing datetimes without dateutil installed (:issue:`1147`). * Fix bug where nested fields in Meta.exclude would not work on multiple instantiations (:issue:`1212`). Thanks :user:`MHannila` for reporting. ------------------------------------------------------------------- Tue May 28 09:46:25 UTC 2019 - Bernhard Wiedemann - Add reproducible.patch to make build reproducible (boo#1047218) ------------------------------------------------------------------- Fri May 17 14:38:06 UTC 2019 - Marketa Calabkova - Update to version 2.19.2 * Handle OverflowError when (de)serializing large integers with fields.Float ------------------------------------------------------------------- Fri Apr 5 09:07:04 UTC 2019 - Petr Gajdos - version update to 2.19.1 - Fix bug where ``Nested(many=True)`` would skip first element when serializing a generator (:issue:`1163`). Thanks :user:`khvn26` for the catch and patch. - A `RemovedInMarshmallow3` warning is raised when using `fields.FormattedString`. Use `fields.Method` or `fields.Function` instead (:issue:`1141`). - A ``ChangedInMarshmallow3Warning`` is no longer raised when ``strict=False`` (:issue:`1108`). Thanks :user:`Aegdesil` for reporting. - Add warnings for functions in ``marshmallow.utils`` that are removed in marshmallow 3. - Copying ``missing`` with ``copy.copy`` or ``copy.deepcopy`` will not duplicate it (:pr:`1099`). - Add ``marshmallow.__version_info__`` (:pr:`1074`). - Add warnings for API that is deprecated or changed to help users prepare for marshmallow 3 (:pr:`1075`). - Prevent memory leak when dynamically creating classes with ``type()`` (:issue:`732`). Thanks :user:`asmodehn` for writing the tests to reproduce this issue. - Prevent warning about importing from ``collections`` on Python 3.7 (:issue:`1027`). Thanks :user:`nkonin` for reporting and :user:`jmargeta` for the PR. - Remove spurious warning about implicit collection handling (:issue:`998`). Thanks :user:`lalvarezguillen` for reporting. - Allow username without password in basic auth part of the url in ``fields.Url`` (:pr:`982`). Thanks user:`alefnula` for the PR. - Prevent ``TypeError`` when a non-collection is passed to a ``Schema`` with ``many=True``. Instead, raise ``ValidationError`` with ``{'_schema': ['Invalid input type.']}`` (:issue:`906`). - Fix ``root`` attribute for nested container fields on list on inheriting schemas (:issue:`956`). Thanks :user:`bmcbu` for reporting. - Handle empty SQLAlchemy lazy lists gracefully when dumping (:issue:`948`). Thanks :user:`vke-code` for the catch and :user:`YuriHeupa` for the patch. - Respect ``load_from`` when reporting errors for ``@validates('field_name')`` (:issue:`748`). Thanks :user:`m-novikov` for the catch and patch. - Fix passing ``only`` as a string to ``nested`` when the passed field defines ``dump_to`` (:issue:`800`, :issue:`822`). Thanks :user:`deckar01` for the catch and patch. - Fix a race condition in validation when concurrent threads use the same ``Schema`` instance (:issue:`783`). Thanks :user:`yupeng0921` and :user:`lafrech` for the fix. - Fix serialization behavior of ``fields.List(fields.Integer(as_string=True))`` (:issue:`788`). Thanks :user:`cactus` for reporting and :user:`lafrech` for the fix. - Fix behavior of ``exclude`` parameter when passed from parent to nested schemas (:issue:`728`). Thanks :user:`timc13` for reporting and :user:`deckar01` for the fix. - :cve:`CVE-2018-17175`: Fix behavior when an empty list is passed as the ``only`` argument (:issue:`772`). Thanks :user:`deckar01` for reporting and thanks :user:`lafrech` for the fix. - Handle ``UnicodeDecodeError`` when deserializing ``bytes`` with a ``String`` field (:issue:`650`). Thanks :user:`dan-blanchard` for the suggestion and thanks :user:`4lissonsilveira` for the PR. - Add ``require_tld`` parameter to ``validate.URL`` (:issue:`664`). Thanks :user:`sduthil` for the suggestion and the PR. - added patches + python-marshmallow-no-version-warning.patch - deleted patches + patch-remove-unsupported-theme-option.patch (upstreamed) ------------------------------------------------------------------- Wed Dec 19 00:15:31 UTC 2018 - Jan Engelhardt - Use noun phrase in summary. ------------------------------------------------------------------- Tue Dec 4 12:50:18 UTC 2018 - Matej Cepl - Remove superfluous devel dependency for noarch package ------------------------------------------------------------------- Sat Aug 19 09:23:52 UTC 2017 - sebix+novell.com@sebix.at - initial package