diff --git a/python-verboselogs.changes b/python-verboselogs.changes index b879fae..1d9dd09 100644 --- a/python-verboselogs.changes +++ b/python-verboselogs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 14 11:00:24 UTC 2022 - pgajdos@suse.com + +- do not require python-mock for build + ------------------------------------------------------------------- Tue Dec 4 12:55:47 UTC 2018 - Matej Cepl diff --git a/python-verboselogs.spec b/python-verboselogs.spec index 70e46d8..4c67f8e 100644 --- a/python-verboselogs.spec +++ b/python-verboselogs.spec @@ -1,7 +1,7 @@ # # spec file for package python-verboselogs # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -25,10 +25,10 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/xolox/python-verboselogs Source: https://files.pythonhosted.org/packages/source/v/verboselogs/verboselogs-%{version}.tar.gz +Patch0: verboselogs-pylint2.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Patch0: verboselogs-pylint2.patch Recommends: python-pylint BuildArch: noarch # SECTION test requirements @@ -61,7 +61,9 @@ It is currently tested on Python 2.6, 2.7, 3.4, 3.5 and PyPy. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand py.test-%{$python_bin_suffix} verboselogs/tests.py +# https://github.com/xolox/python-verboselogs/issues/12 +sed -i 's:import mock:from unittest import mock:' verboselogs/tests.py +%pytest verboselogs/tests.py %files %{python_files} %doc README.rst