From 80115435c8ad5bc874879e737df16e40c69277d151ec88d125bd388ed560fb04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 12 Aug 2020 12:31:30 +0000 Subject: [PATCH] Accepting request 826032 from home:bnavigator:branches:devel:languages:python - avoid reading DNS resolver settings gh#gabrielfalcao/HTTPretty#405 - remove unnecessary test packages OBS-URL: https://build.opensuse.org/request/show/826032 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpretty?expand=0&rev=35 --- python-httpretty.changes | 7 +++++++ python-httpretty.spec | 10 ++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/python-httpretty.changes b/python-httpretty.changes index 24cb8c1..19a4506 100644 --- a/python-httpretty.changes +++ b/python-httpretty.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Aug 12 12:24:09 UTC 2020 - Benjamin Greiner + +- avoid reading DNS resolver settings + gh#gabrielfalcao/HTTPretty#405 +- remove unnecessary test packages + ------------------------------------------------------------------- Thu Apr 9 11:25:31 UTC 2020 - Marketa Calabkova diff --git a/python-httpretty.spec b/python-httpretty.spec index 9b0d9eb..a1b44c1 100644 --- a/python-httpretty.spec +++ b/python-httpretty.spec @@ -26,13 +26,11 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/gabrielfalcao/HTTPretty Source: https://files.pythonhosted.org/packages/source/h/httpretty/httpretty-%{version}.tar.gz -BuildRequires: %{python_module coverage} BuildRequires: %{python_module eventlet} BuildRequires: %{python_module fakeredis} BuildRequires: %{python_module freezegun} BuildRequires: %{python_module httplib2} BuildRequires: %{python_module nose} -BuildRequires: %{python_module rednose} BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module sure} @@ -50,13 +48,17 @@ It is similar to Ruby's FakeWeb. %prep %setup -q -n httpretty-%{version} -# randomly is unknown option for our nose -sed -i -e '/with-randomly/d' setup.cfg +# no test coverage check needed +sed -i -e '/cover/ d' setup.cfg +# no color printout for tests +sed -i -e '/rednose/ d' setup.cfg %build %python_build %check +# https://github.com/gabrielfalcao/HTTPretty/issues/405 +export EVENTLET_NO_GREENDNS=yes # test_http_passthrough and test_https_passthrough need internet connection %python_expand nosetests-%{$python_bin_suffix} --exclude='test_http.?_passthrough'