forked from pool/python-openapi-spec-validator
- Update to 0.2.7:
* Replace pathlib with pathlib2 (#68) * Bump PyYAML to 5.1 for CVE-2017-18342 (#69) * Support jsonschema 3 (#72) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openapi-spec-validator?expand=0&rev=8
This commit is contained in:
committed by
Git OBS Bridge
parent
dc7007fdba
commit
72f28bef0e
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-openapi-spec-validator
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-openapi-spec-validator
|
||||
Version: 0.2.4
|
||||
Version: 0.2.7
|
||||
Release: 0
|
||||
Summary: Python module for validating OpenAPI Specs against Swagger and OAS3
|
||||
License: Apache-2.0
|
||||
@@ -26,19 +26,23 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/p1c2u/openapi-spec-validator
|
||||
Source: https://github.com/p1c2u/openapi-spec-validator/archive/%{version}.tar.gz
|
||||
Patch0: openapi-spec-validator-skip-urls.patch
|
||||
BuildRequires: %{python_module PyYAML}
|
||||
BuildRequires: %{python_module PyYAML >= 5.1}
|
||||
BuildRequires: %{python_module jsonschema}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-pathlib2
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-PyYAML
|
||||
Requires: python-PyYAML >= 5.1
|
||||
Requires: python-jsonschema
|
||||
Requires: python-six
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%ifpython2
|
||||
Requires: python-pathlib2
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -66,7 +70,7 @@ for full compliance with the Specification.
|
||||
%python_uninstall_alternative openapi-spec-validator
|
||||
|
||||
%check
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix}
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
|
||||
Reference in New Issue
Block a user