diff --git a/0.13.3.tar.gz b/0.13.3.tar.gz deleted file mode 100644 index 7c6daf0..0000000 --- a/0.13.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c030a4069c9f08d4c1816b9bf1187607facc3a2f0d609cd5356da140b583abdc -size 58784 diff --git a/openapi-core-0.14.2-gh.tar.gz b/openapi-core-0.14.2-gh.tar.gz new file mode 100644 index 0000000..a0ec2a1 --- /dev/null +++ b/openapi-core-0.14.2-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc6d1e89caa6b1eef4ff2bedebb9e2626db5270e595b473b456c82d18e3af615 +size 57519 diff --git a/python-openapi-core.changes b/python-openapi-core.changes index f0cf6d6..aa85bf9 100644 --- a/python-openapi-core.changes +++ b/python-openapi-core.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Mon Aug 16 13:17:44 UTC 2021 - Ben Greiner + +- 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 + ------------------------------------------------------------------- Tue May 5 12:21:53 UTC 2020 - Tomáš Chvátal diff --git a/python-openapi-core.spec b/python-openapi-core.spec index 6c9b974..de7779a 100644 --- a/python-openapi-core.spec +++ b/python-openapi-core.spec @@ -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