From 15f77add84c11fa6573bd5daae4c72922cfff3cdd3d01b4475de0954f43ceef8 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 1 Sep 2021 18:46:49 +0000 Subject: [PATCH] Accepting request 915480 from home:pgajdos:python - %check: use %pyunittest rpm macro OBS-URL: https://build.opensuse.org/request/show/915480 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-logutils?expand=0&rev=10 --- python-logutils.changes | 5 +++++ python-logutils.spec | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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