From fe05ae84e68774295be6fa7a8d525801b55f0d9d37475ca48c2c8669e1d59550 Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Wed, 28 Apr 2021 20:47:10 +0000 Subject: [PATCH] Accepting request 888872 from home:seanmarlow:branches:devel:languages:python:flask - Add missing python2 requirement. - Ignore test_handle_non_api_error test which is dependent on werkzeug version. OBS-URL: https://build.opensuse.org/request/show/888872 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-flask-restx?expand=0&rev=5 --- python-flask-restx.changes | 11 +++++++++++ python-flask-restx.spec | 13 ++++++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/python-flask-restx.changes b/python-flask-restx.changes index d161f4a..8f72a2f 100644 --- a/python-flask-restx.changes +++ b/python-flask-restx.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Tue Apr 27 17:02:22 UTC 2021 - Sean Marlow + +- Add missing python2 requirement. + +------------------------------------------------------------------- +Mon Apr 12 21:46:20 UTC 2021 - Sean Marlow + +- Ignore test_handle_non_api_error test which is dependent on + werkzeug version. + ------------------------------------------------------------------- Thu Sep 24 05:53:07 UTC 2020 - Petr Cervinka diff --git a/python-flask-restx.spec b/python-flask-restx.spec index 1bed03c..d3d938d 100644 --- a/python-flask-restx.spec +++ b/python-flask-restx.spec @@ -1,7 +1,7 @@ # # spec file for package python-flask-restx # -# 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 @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-flask-restx Version: 0.2.0 Release: 0 @@ -31,19 +32,25 @@ BuildRequires: %{python_module aniso8601} BuildRequires: %{python_module blinker} BuildRequires: %{python_module jsonschema} BuildRequires: %{python_module mock} +BuildRequires: %{python_module pytest < 6} BuildRequires: %{python_module pytest-benchmark} BuildRequires: %{python_module pytest-flask} BuildRequires: %{python_module pytest-mock} -BuildRequires: %{python_module pytest < 6} BuildRequires: %{python_module pytz} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module tzlocal} BuildRequires: fdupes BuildRequires: python-rpm-macros +%if %{with python2} +BuildRequires: python2-enum34 +%endif Requires: python-Flask Requires: python-aniso8601 Requires: python-jsonschema Requires: python-pytz +%ifpython2 +Requires: python2-enum34 +%endif BuildArch: noarch %python_subpackages @@ -65,7 +72,7 @@ its documentation properly using Swagger. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest -k 'not URLTest and not EmailTest' +%pytest -k 'not URLTest and not EmailTest and not test_handle_non_api_error' %files %{python_files} %doc README.rst CONTRIBUTING.rst