14
0

Accepting request 970102 from home:pgajdos:python

- do not require python-mock for build

OBS-URL: https://build.opensuse.org/request/show/970102
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zdaemon?expand=0&rev=34
This commit is contained in:
2022-04-14 14:42:53 +00:00
committed by Git OBS Bridge
parent 7c52c52e97
commit fc5d056322
2 changed files with 8 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file
#
# 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
@@ -29,7 +29,6 @@ Source: https://files.pythonhosted.org/packages/source/z/zdaemon/%{modna
Patch0: obs-timeout.patch
BuildRequires: %{python_module ZConfig}
BuildRequires: %{python_module manuel}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module zc.customdoctests}
BuildRequires: %{python_module zope.testing}
@@ -65,6 +64,8 @@ rm -rf src/zdaemon.egg-info
%python_clone -a %{buildroot}%{_bindir}/zdaemon
%check
# https://github.com/zopefoundation/zdaemon/issues/28
sed -i 's:import mock:from unittest import mock:' src/zdaemon/tests/testuser.py
pushd src
%pyunittest discover -v