15
0
Files
python-marshmallow/python-marshmallow.spec
Dirk Mueller e210fdc488 - 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`).
- rename docs subpackage to the more common doc name
- 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-marshmallow?expand=0&rev=48
2023-12-10 21:28:17 +00:00

101 lines
3.1 KiB
RPMSpec

#
# spec file for package python-marshmallow
#
# Copyright (c) 2023 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/
#
%{?sle15_python_module_pythons}
Name: python-marshmallow
Version: 3.20.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 base >= 3.8}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Suggests: %{name}-doc
Suggests: python-python-dateutil
Suggests: python-simplejson
BuildArch: noarch
# SECTION doc build requirements
%if 0%{?suse_version} == 1500 && 0%{?sle_version} >= 150400
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module alabaster}
BuildRequires: %{python_module sphinx-issues}
BuildRequires: %{python_module sphinx-version-warning}
%else
BuildRequires: python3-Sphinx
BuildRequires: python3-alabaster
BuildRequires: python3-sphinx-issues
BuildRequires: python3-sphinx-version-warning
%endif
# /SECTION
# SECTION test requirements
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module simplejson}
# /SECTION
%python_subpackages
%description
marshmallow is an ORM/ODM/framework-agnostic library for converting complex
datatypes, such as objects, to and from native Python datatypes.
%if 0%{?suse_version} > 1500
%package -n %{name}-doc
Summary: Documentation files for %{name}
Group: Documentation/Other
Provides: %{name}-docs = %{version}
Obsoletes: %{name}-docs < %{version}
%description -n %{name}-doc
HTML Documentation and examples for %{name}.
%endif
%prep
%setup -q -n marshmallow-%{version}
%autopatch -p1
%build
%python_build
sphinx-build 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}/*
%if 0%{?suse_version} > 1500
%files -n %{name}-doc
%endif
%doc examples docs/_build/html/
%changelog