17
0
Files
python-openapi-core/python-openapi-core.spec

90 lines
3.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-openapi-core
#
# 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-%{**}}
%bcond_without python2
Name: python-openapi-core
Version: 0.16.0
Release: 0
Summary: Adds client-side and server-side support for the oas3
License: BSD-3-Clause
URL: https://github.com/p1c2u/openapi-core
Source: https://github.com/p1c2u/openapi-core/archive/%{version}.tar.gz#/openapi-core-%{version}-gh.tar.gz
BuildRequires: %{python_module Django}
BuildRequires: %{python_module Flask}
BuildRequires: %{python_module WebOb}
BuildRequires: %{python_module Werkzeug}
BuildRequires: %{python_module attrs}
BuildRequires: %{python_module dictpath}
BuildRequires: %{python_module falcon}
BuildRequires: %{python_module isodate}
BuildRequires: %{python_module jsonschema-spec >= 0.1.1}
BuildRequires: %{python_module lazy-object-proxy}
BuildRequires: %{python_module more-itertools >= 5.0.0}
BuildRequires: %{python_module openapi-schema-validator >= 0.3.0}
BuildRequires: %{python_module openapi-spec-validator >= 0.5.0}
BuildRequires: %{python_module parse >= 1.14.0}
BuildRequires: %{python_module pathable >= 0.4.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module responses}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Werkzeug
Requires: python-attrs
Requires: python-dictpath
Requires: python-isodate
Requires: python-jsonschema-spec >= 0.1.1
Requires: python-lazy-object-proxy
Requires: python-more-itertools >= 5.0.0
Requires: python-openapi-schema-validator >= 0.3.0
Requires: python-openapi-spec-validator >= 0.5.0
Requires: python-parse >= 1.14.0
Requires: python-pathable >= 0.4.0
BuildArch: noarch
%python_subpackages
%description
Openapi-core is a Python library that adds client-side
and server-side support for the OpenAPI Specification
v3.0.0.
%prep
%setup -q -n openapi-core-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest tests/unit -k 'not (test_read_only_properties_invalid or test_write_only_properties_invalid)'
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/openapi_core
%{python_sitelib}/openapi_core-%{version}*-info
%changelog