From 6b001b9b5d4291418769a8cb23a7a7a0070837f8e677b7b9e2734dccc77d901e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 28 Apr 2022 07:57:42 +0000 Subject: [PATCH] Accepting request 973205 from home:mcalabkova:branches:devel:languages:python - Remove pytest-pythonpath and fix build OBS-URL: https://build.opensuse.org/request/show/973205 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flex?expand=0&rev=11 --- python-flex.changes | 5 +++++ python-flex.spec | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/python-flex.changes b/python-flex.changes index 6c30c30..28fe623 100644 --- a/python-flex.changes +++ b/python-flex.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 27 13:41:23 UTC 2022 - Markéta Machová + +- Remove pytest-pythonpath and fix build + ------------------------------------------------------------------- Sun Aug 29 22:33:20 UTC 2021 - Matej Cepl diff --git a/python-flex.spec b/python-flex.spec index 8df8392..c3515f3 100644 --- a/python-flex.spec +++ b/python-flex.spec @@ -1,7 +1,7 @@ # # spec file for package python-flex # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -32,7 +32,6 @@ BuildRequires: %{python_module click >= 3.3} BuildRequires: %{python_module factory_boy >= 2.4.1} BuildRequires: %{python_module jsonpointer >= 1.7} BuildRequires: %{python_module pytest-httpbin} -BuildRequires: %{python_module pytest-pythonpath >= 0.3} BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests >= 2.4.3} BuildRequires: %{python_module responses >= 0.5.1} @@ -71,6 +70,10 @@ Validation tooling for Swagger 2.0 specifications. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +PYTHONPATH=. +# gh#pipermerriam/flex#236 +sed -i 's/werkzeug.wrappers.BaseRequest/werkzeug.wrappers.Request/' flex/http.py +sed -i 's/werkzeug.wrappers.BaseResponse/werkzeug.wrappers.Response/' flex/http.py # gh#pipermerriam/flex#234 %pytest -k "not (donttestdummyprefix or (test_request_parameter_array_extraction and tsv))"