From 586ca279129a98b64871cf007f516e91a33a7a9d45e97ebc25cd377e773e6cff Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 23 Mar 2022 21:23:46 +0000 Subject: [PATCH] Accepting request 964241 from home:pgajdos:python - do not require python-mock for build OBS-URL: https://build.opensuse.org/request/show/964241 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-graphviz?expand=0&rev=25 --- python-graphviz.changes | 5 +++++ python-graphviz.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/python-graphviz.changes b/python-graphviz.changes index e350b1d..5134126 100644 --- a/python-graphviz.changes +++ b/python-graphviz.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 23 10:36:42 UTC 2022 - pgajdos@suse.com + +- do not require python-mock for build + ------------------------------------------------------------------- Mon Dec 13 15:16:48 UTC 2021 - Dominique Leuenberger diff --git a/python-graphviz.spec b/python-graphviz.spec index cbbddb0..db31568 100644 --- a/python-graphviz.spec +++ b/python-graphviz.spec @@ -1,7 +1,7 @@ # # spec file for package python-graphviz # -# 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 @@ -26,10 +26,9 @@ Group: Development/Languages/Python URL: https://github.com/xflr6/graphviz Source: https://files.pythonhosted.org/packages/source/g/graphviz/graphviz-%{version}.zip Patch0: python-graphviz-pytest.patch -BuildRequires: %{python_module mock >= 2} BuildRequires: %{python_module pytest >= 6} BuildRequires: %{python_module pytest-cov} -BuildRequires: %{python_module pytest-mock >= 1.8} +BuildRequires: %{python_module pytest-mock >= 3} BuildRequires: %{python_module setuptools} BuildRequires: dos2unix BuildRequires: fdupes @@ -71,6 +70,8 @@ dos2unix LICENSE.txt README.rst docs/*.rst %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +sed -i '/^mock/d' */requires.txt +sed -i '/^mock_use_standalone_module/d' setup.cfg %pytest %files %{python_files}