From 8b895ebaced2b8d1007b0873ecb63eb53d7f51ec572978e61d58291a9e1cba2e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 28 May 2021 09:38:33 +0000 Subject: [PATCH] Accepting request 895929 from home:pgajdos:python - %check: use %pyunittest rpm macro OBS-URL: https://build.opensuse.org/request/show/895929 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-yubico?expand=0&rev=4 --- python-python-yubico.changes | 5 +++++ python-python-yubico.spec | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/python-python-yubico.changes b/python-python-yubico.changes index cd19ce2..525e852 100644 --- a/python-python-yubico.changes +++ b/python-python-yubico.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 28 09:27:28 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + ------------------------------------------------------------------- Thu May 9 06:09:12 UTC 2019 - pgajdos@suse.com diff --git a/python-python-yubico.spec b/python-python-yubico.spec index 95f00a3..d47f18a 100644 --- a/python-python-yubico.spec +++ b/python-python-yubico.spec @@ -1,7 +1,7 @@ # -# spec file for package python-yubico +# spec file for package python-python-yubico # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -35,9 +35,9 @@ BuildRequires: %{python_module usb} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-usb -BuildArch: noarch Provides: python-yubico = %{version} Obsoletes: python-yubico < %{version} +BuildArch: noarch %python_subpackages %description @@ -64,7 +64,7 @@ but there are things one can do with bi-directional communication: %check # needs the hardware rm -r test/usb -%python_exec setup.py test +%pyunittest discover -v %files %{python_files} %license COPYING