2017-08-21 05:35:19 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-marshmallow
|
|
|
|
#
|
2023-03-15 14:57:08 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2017-08-21 05:35:19 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-04 13:39:57 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2017-08-21 05:35:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2019-08-27 00:54:41 +00:00
|
|
|
%define skip_python2 1
|
2017-08-21 05:35:19 +00:00
|
|
|
Name: python-marshmallow
|
2022-12-02 21:36:27 +00:00
|
|
|
Version: 3.19.0
|
2017-08-21 05:35:19 +00:00
|
|
|
Release: 0
|
2019-01-08 18:39:42 +00:00
|
|
|
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
|
2017-08-21 05:35:19 +00:00
|
|
|
Group: Development/Languages/Python
|
2019-07-24 08:02:13 +00:00
|
|
|
URL: https://marshmallow.readthedocs.io/
|
2017-08-21 05:35:19 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/m/marshmallow/marshmallow-%{version}.tar.gz
|
2019-04-05 10:05:52 +00:00
|
|
|
# https://github.com/humitos/sphinx-version-warning/issues/22
|
|
|
|
Patch0: python-marshmallow-no-version-warning.patch
|
2020-08-21 06:21:24 +00:00
|
|
|
BuildRequires: %{python_module autodocsumm}
|
2017-08-21 05:35:19 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
2018-12-04 13:39:57 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-07-24 08:02:13 +00:00
|
|
|
Suggests: %{name}-docs
|
|
|
|
Suggests: python-python-dateutil
|
|
|
|
Suggests: python-simplejson
|
|
|
|
BuildArch: noarch
|
2019-04-05 10:05:52 +00:00
|
|
|
# SECTION doc build requirements
|
2023-03-15 17:51:40 +00:00
|
|
|
%if 0%{?suse_version} == 1500 && 0%{?sle_version} >= 150400
|
2023-03-15 14:57:08 +00:00
|
|
|
BuildRequires: %{python_module Sphinx}
|
|
|
|
BuildRequires: %{python_module alabaster}
|
|
|
|
BuildRequires: %{python_module sphinx-issues}
|
|
|
|
BuildRequires: %{python_module sphinx-version-warning}
|
|
|
|
%else
|
2017-08-21 05:35:19 +00:00
|
|
|
BuildRequires: python3-Sphinx
|
2019-08-27 00:54:41 +00:00
|
|
|
BuildRequires: python3-alabaster
|
2017-08-21 05:35:19 +00:00
|
|
|
BuildRequires: python3-sphinx-issues
|
2019-04-05 10:05:52 +00:00
|
|
|
BuildRequires: python3-sphinx-version-warning
|
2023-03-15 14:57:08 +00:00
|
|
|
%endif
|
2019-04-05 10:05:52 +00:00
|
|
|
# /SECTION
|
2017-08-21 05:35:19 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module pytz}
|
|
|
|
BuildRequires: %{python_module simplejson}
|
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%package -n %{name}-docs
|
2019-07-24 08:02:13 +00:00
|
|
|
Summary: Documentation files for %{name}
|
2017-08-21 05:35:19 +00:00
|
|
|
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.
|
|
|
|
|
2019-07-24 08:02:13 +00:00
|
|
|
%description -n %{name}-docs
|
|
|
|
HTML Documentation and examples for %{name}.
|
2017-08-21 05:35:19 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n marshmallow-%{version}
|
2019-07-31 09:14:19 +00:00
|
|
|
%autopatch -p1
|
|
|
|
|
2017-08-21 05:35:19 +00:00
|
|
|
%build
|
|
|
|
%python_build
|
2023-03-15 14:57:08 +00:00
|
|
|
sphinx-build docs/ docs/_build/html
|
2019-10-08 17:43:54 +00:00
|
|
|
rm -r docs/_build/html/.buildinfo docs/_build/html/.doctrees
|
2017-08-21 05:35:19 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2019-07-24 08:02:13 +00:00
|
|
|
%pytest
|
2017-08-21 05:35:19 +00:00
|
|
|
|
|
|
|
%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
|