Accepting request 912422 from home:bnavigator:branches:devel:languages:python:jupyter
- Update to version 0.14.2 * Non required request body fix (#325) * Parameter simple scenarion for any schema type fix (#323) - Release notes for 0.14.0 Changes: * Spec replaced with SpecPath (#318) Backward incompatibilities: * create_spec shortcut returns SpecPath instead of Spec * removed Spec-related schema package * schema-related exceptions moved to top level exceptions module * readOnly/writeOnly invalid properties raise error (before were ommitted) * MediaTypeDeserializersFactory.create expects mimetype string instead of media_type * MediaTypeFinder.find returns media_type, mimetype tuple instead of just media_type - Changelog between 0.13.3 and 0.14.0: https://github.com/p1c2u/openapi-core/releases - Edit out mock test requirement for Python 3 OBS-URL: https://build.opensuse.org/request/show/912422 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openapi-core?expand=0&rev=22
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-openapi-core
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -19,28 +19,33 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without python2
|
||||
Name: python-openapi-core
|
||||
Version: 0.13.3
|
||||
Version: 0.14.2
|
||||
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
|
||||
Source: https://github.com/p1c2u/openapi-core/archive/%{version}.tar.gz#/openapi-core-%{version}-gh.tar.gz
|
||||
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 lazy-object-proxy}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module more-itertools >= 5.0.0}
|
||||
BuildRequires: %{python_module openapi-schema-validator}
|
||||
BuildRequires: %{python_module openapi-spec-validator}
|
||||
BuildRequires: %{python_module parse >= 1.14.0}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module responses}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module strict-rfc3339}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Werkzeug
|
||||
Requires: python-attrs
|
||||
Requires: python-dictpath
|
||||
Requires: python-isodate
|
||||
Requires: python-lazy-object-proxy
|
||||
Requires: python-more-itertools >= 5.0.0
|
||||
@@ -48,12 +53,12 @@ Requires: python-openapi-schema-validator
|
||||
Requires: python-openapi-spec-validator
|
||||
Requires: python-parse >= 1.14.0
|
||||
Requires: python-six
|
||||
Requires: python-strict-rfc3339
|
||||
BuildArch: noarch
|
||||
%if %{with python2}
|
||||
BuildRequires: python-backports.functools_lru_cache
|
||||
BuildRequires: python-backports.functools_partialmethod
|
||||
BuildRequires: python-enum34
|
||||
BuildRequires: python2-mock
|
||||
%endif
|
||||
%ifpython2
|
||||
Requires: python-backports.functools_lru_cache
|
||||
@@ -69,6 +74,12 @@ v3.0.0.
|
||||
|
||||
%prep
|
||||
%setup -q -n openapi-core-%{version}
|
||||
# remove extra mock for Python 3
|
||||
find tests -name "*.py" -exec sed -i '/^import mock/ c try:\
|
||||
from unittest import mock\
|
||||
except ImportError:\
|
||||
import mock\
|
||||
' {} ';'
|
||||
|
||||
%build
|
||||
export LANG=en_US.UTF-8
|
||||
@@ -82,12 +93,15 @@ export LANG=en_US.UTF-8
|
||||
%check
|
||||
sed -i '/addopts/d' setup.cfg
|
||||
export LANG=en_US.UTF-8
|
||||
# test_string_format_invalid_value pytest5 incompatible, fixed in git by major rewrite
|
||||
# test_string_format_invalid_value: pytest >=5 incompatible,
|
||||
# fixed in git by major rewrite (but still not released in 0.14.2)
|
||||
# https://github.com/p1c2u/openapi-core/issues/158
|
||||
%pytest tests/unit -k 'not test_string_format_invalid_value'
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/openapi_core
|
||||
%{python_sitelib}/openapi_core-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user