From 7e68036db07444e0e75443e93724f8f5e7ee9458d7b95c1dc523844033910c45 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 8 Apr 2022 20:46:28 +0000 Subject: [PATCH] Accepting request 967740 from home:pgajdos:python - do not require python-mock for build OBS-URL: https://build.opensuse.org/request/show/967740 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pywebpush?expand=0&rev=4 --- python-pywebpush.changes | 5 +++++ python-pywebpush.spec | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/python-pywebpush.changes b/python-pywebpush.changes index fd24a47..18acc56 100644 --- a/python-pywebpush.changes +++ b/python-pywebpush.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Apr 8 10:03:17 UTC 2022 - pgajdos@suse.com + +- do not require python-mock for build + ------------------------------------------------------------------- Tue Sep 28 01:08:03 UTC 2021 - Steve Kowalik diff --git a/python-pywebpush.spec b/python-pywebpush.spec index 69c6b71..4df22ca 100644 --- a/python-pywebpush.spec +++ b/python-pywebpush.spec @@ -1,7 +1,7 @@ # # spec file for package python-pywebpush # -# 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 @@ -37,7 +37,6 @@ BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module cryptography >= 2.6.1} BuildRequires: %{python_module http-ece >= 1.1.0} -BuildRequires: %{python_module mock >= 2.0.0} BuildRequires: %{python_module py-vapid >= 1.5.0} BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests >= 2.21.0} @@ -59,6 +58,8 @@ WebPush publication library. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +# https://github.com/web-push-libs/pywebpush/issues/146 +sed -i 's:from mock:from unittest.mock:' pywebpush/tests/test_webpush.py %pytest %post