1
0
python-marshmallow/python-marshmallow.spec

88 lines
2.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-marshmallow
#
Accepting request 979706 from home:Simmphonie:python - 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). OBS-URL: https://build.opensuse.org/request/show/979706 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-marshmallow?expand=0&rev=31
2022-05-29 18:43:54 +00:00
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-marshmallow
2022-09-29 19:01:19 +00:00
Version: 3.17.1
Release: 0
Summary: ORM/ODM/framework-agnostic library to convert datatypes from/to Python types
2021-04-23 11:46:13 +00:00
License: BSD-3-Clause AND MIT
Group: Development/Languages/Python
URL: https://marshmallow.readthedocs.io/
Source: https://files.pythonhosted.org/packages/source/m/marshmallow/marshmallow-%{version}.tar.gz
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
# https://github.com/humitos/sphinx-version-warning/issues/22
Patch0: python-marshmallow-no-version-warning.patch
BuildRequires: %{python_module autodocsumm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Suggests: %{name}-docs
Suggests: python-python-dateutil
Suggests: python-simplejson
BuildArch: noarch
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
# SECTION doc build requirements
BuildRequires: python3-Sphinx
BuildRequires: python3-alabaster
BuildRequires: python3-sphinx-issues
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
BuildRequires: python3-sphinx-version-warning
# /SECTION
# SECTION test requirements
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module simplejson}
# /SECTION
%python_subpackages
%package -n %{name}-docs
Summary: Documentation files for %{name}
Group: Documentation/Other
%description
marshmallow is an ORM/ODM/framework-agnostic library for converting complex
datatypes, such as objects, to and from native Python datatypes.
%description -n %{name}-docs
HTML Documentation and examples for %{name}.
%prep
%setup -q -n marshmallow-%{version}
%autopatch -p1
%build
%python_build
2021-04-23 11:46:13 +00:00
sphinx-build-%{python3_bin_suffix} docs/ docs/_build/html
rm -r docs/_build/html/.buildinfo docs/_build/html/.doctrees
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc AUTHORS.rst CHANGELOG.rst README.rst
%license LICENSE NOTICE
%{python_sitelib}/*
%files -n %{name}-docs
%doc examples docs/_build/html/
%changelog