forked from pool/python-zdaemon
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:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 14 09:34:25 UTC 2022 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- do not require python-mock for build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 24 07:52:41 UTC 2021 - pgajdos@suse.com
|
Fri Sep 24 07:52:41 UTC 2021 - pgajdos@suse.com
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file
|
# spec file
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@@ -29,7 +29,6 @@ Source: https://files.pythonhosted.org/packages/source/z/zdaemon/%{modna
|
|||||||
Patch0: obs-timeout.patch
|
Patch0: obs-timeout.patch
|
||||||
BuildRequires: %{python_module ZConfig}
|
BuildRequires: %{python_module ZConfig}
|
||||||
BuildRequires: %{python_module manuel}
|
BuildRequires: %{python_module manuel}
|
||||||
BuildRequires: %{python_module mock}
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module zc.customdoctests}
|
BuildRequires: %{python_module zc.customdoctests}
|
||||||
BuildRequires: %{python_module zope.testing}
|
BuildRequires: %{python_module zope.testing}
|
||||||
@@ -65,6 +64,8 @@ rm -rf src/zdaemon.egg-info
|
|||||||
%python_clone -a %{buildroot}%{_bindir}/zdaemon
|
%python_clone -a %{buildroot}%{_bindir}/zdaemon
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
# https://github.com/zopefoundation/zdaemon/issues/28
|
||||||
|
sed -i 's:import mock:from unittest import mock:' src/zdaemon/tests/testuser.py
|
||||||
pushd src
|
pushd src
|
||||||
%pyunittest discover -v
|
%pyunittest discover -v
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user