Commit Graph

3 Commits

Author SHA256 Message Date
Steve Kowalik
0e0a7c1aa2 - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-marshmallow?expand=0&rev=27
2020-08-21 06:21:24 +00:00
Tomáš Chvátal
2a3053079b Accepting request 726193 from home:mcalabkova:branches:devel:languages:python
- Update to 3.0.1
  * 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

OBS-URL: https://build.opensuse.org/request/show/726193
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-marshmallow?expand=0&rev=17
2019-08-27 00:54:41 +00:00
Tomáš Chvátal
8b5db69938 Accepting request 691765 from home:pgajdos
- 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

OBS-URL: https://build.opensuse.org/request/show/691765
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-marshmallow?expand=0&rev=7
2019-04-05 10:05:52 +00:00