File python-apispec.spec of Package python-apispec

#
# spec file for package python-apispec
#
# Copyright (c) 2026 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/
#


Name:           python-apispec
Version:        6.9.0
Release:        0
Summary:        A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification)
License:        MIT
URL:            https://github.com/marshmallow-code/apispec
Source:         https://files.pythonhosted.org/packages/source/a/apispec/apispec-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module flit-core < 4}
BuildRequires:  %{python_module pip}
# SECTION test requirements
BuildRequires:  %{python_module pytest}
BuildRequires:  %{python_module packaging >= 21.3}
BuildRequires:  %{python_module openapi-spec-validator}
BuildRequires:  %{python_module PyYAML}
BuildRequires:  %{python_module marshmallow}
# /SECTION
BuildRequires:  fdupes
Requires:       python-packaging >= 21.3
Suggests:       python-PyYAML >= 3.10
Suggests:       python-marshmallow >= 3.18.0
Suggests:       python-apispec
Suggests:       python-pyyaml == 6.0.3
Suggests:       python-Sphinx == 8.2.3
Suggests:       python-sphinx-issues == 5.0.1
Suggests:       python-sphinx-rtd-theme == 3.0.2
Suggests:       python-apispec
Suggests:       python-openapi-spec-validator == 0.7.2
Suggests:       python-pytest
Suggests:       python-apispec
Suggests:       python-tox
Suggests:       python-pre-commit >= 3.5
BuildArch:      noarch
%python_subpackages

%description

A pluggable API specification generator. Currently supports the
`OpenAPI Specification <https://github.com/OAI/OpenAPI-Specification>`
(f.k.a. the Swagger specification).

%prep
%autosetup -p1 -n apispec-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%check
%pytest

%files %{python_files}
%doc CHANGELOG.rst README.rst
%license LICENSE LICENSE
%{python_sitelib}/apispec
%{python_sitelib}/apispec-%{version}.dist-info

%changelog
openSUSE Build Service is sponsored by