python-marshmallow/python-marshmallow.spec
Markéta Machová df1a1c66bd Accepting request 887532 from home:bnavigator:branches:devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/887532
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-marshmallow?expand=0&rev=29
2021-04-23 11:46:13 +00:00

88 lines
2.7 KiB
RPMSpec

#
# spec file for package python-marshmallow
#
# Copyright (c) 2021 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
Version: 3.11.1
Release: 0
Summary: ORM/ODM/framework-agnostic library to convert datatypes from/to Python types
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
# 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
# SECTION doc build requirements
BuildRequires: python3-Sphinx
BuildRequires: python3-alabaster
BuildRequires: python3-sphinx-issues
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
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