14
0

Accepting request 967921 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/967921
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pywebpush?expand=0&rev=3
This commit is contained in:
2022-04-09 22:41:56 +00:00
committed by Git OBS Bridge
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> 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 # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -37,7 +37,6 @@ BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module cryptography >= 2.6.1} BuildRequires: %{python_module cryptography >= 2.6.1}
BuildRequires: %{python_module http-ece >= 1.1.0} 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 py-vapid >= 1.5.0}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 2.21.0} BuildRequires: %{python_module requests >= 2.21.0}
@@ -59,6 +58,8 @@ WebPush publication library.
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
# https://github.com/web-push-libs/pywebpush/issues/146
sed -i 's:from mock:from unittest.mock:' pywebpush/tests/test_webpush.py
%pytest %pytest
%post %post