15
0

- Update to 0.10.0:

* Various tests and support updates
- Update requirements to match up upstream

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openapi-core?expand=0&rev=4
This commit is contained in:
Tomáš Chvátal
2019-06-03 11:20:36 +00:00
committed by Git OBS Bridge
parent 1188110a46
commit 02d42402e0
4 changed files with 24 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-openapi-core
#
# 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
@@ -12,15 +12,14 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# remove with update to > 0.5.0; atm it is not working on py2 at all
%define skip_python2 1
Name: python-openapi-core
Version: 0.5.0
Version: 0.10.0
Release: 0
Summary: Adds client-side and server-side support for the oas3
License: BSD-3-Clause
@@ -28,26 +27,29 @@ Group: Development/Languages/Python
URL: https://github.com/p1c2u/openapi-core
Source: https://github.com/p1c2u/openapi-core/archive/%{version}.tar.gz
BuildRequires: %{python_module Flask}
BuildRequires: %{python_module attrs}
BuildRequires: %{python_module lazy-object-proxy}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module openapi-spec-validator}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{python_module yarl}
BuildRequires: %{python_module strict-rfc3339}
BuildRequires: fdupes
BuildRequires: python-backports.functools_lru_cache
BuildRequires: python-backports.functools_partialmethod
BuildRequires: python-enum34
BuildRequires: python-rpm-macros
BuildRequires: python2-backports.functools_lru_cache
BuildRequires: python2-backports.functools_partialmethod
BuildRequires: python2-enum34
Requires: python-attrs
Requires: python-lazy-object-proxy
Requires: python-openapi-spec-validator
Requires: python-six
Requires: python-yarl
Requires: python-strict-rfc3339
BuildArch: noarch
%ifpython2
Requires: python2-backports.functools_lru_cache
Requires: python2-enum34
Requires: python-backports.functools-partialmethod
Requires: python-backports.functools_lru_cache
Requires: python-enum34
%endif
%python_subpackages
@@ -70,7 +72,7 @@ export LANG=en_US.UTF-8
%check
export LANG=en_US.UTF-8
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} tests/unit
%pytest tests/unit
%files %{python_files}
%license LICENSE