14
0

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
This commit is contained in:
2022-04-08 20:46:28 +00:00
committed by Git OBS Bridge
parent 1924cbfc77
commit 7e68036db0
2 changed files with 8 additions and 2 deletions

View File

@@ -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 <steven.kowalik@suse.com>

View File

@@ -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