diff --git a/python-logutils.changes b/python-logutils.changes index 844c392..ceac9ef 100644 --- a/python-logutils.changes +++ b/python-logutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 1 12:28:43 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + ------------------------------------------------------------------- Sat Jun 5 19:05:36 UTC 2021 - Dirk Müller diff --git a/python-logutils.spec b/python-logutils.spec index 2db8b30..631a71d 100644 --- a/python-logutils.spec +++ b/python-logutils.spec @@ -26,9 +26,11 @@ Group: Development/Languages/Python URL: https://logutils.readthedocs.io/ Source: https://files.pythonhosted.org/packages/source/l/logutils/logutils-%{version}.tar.gz Patch0: sphinx4.patch +BuildRequires: %{python_module redis} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros BuildRequires: python3-Sphinx +BuildRequires: redis BuildArch: noarch %python_subpackages @@ -69,7 +71,8 @@ cd doc && make html %python_install %check -%python_exec setup.py test +export PATH="$PATH:/sbin" +%pyunittest discover -v tests %files %{python_files} %license LICENSE.txt