From 2abfb43ee9cea82d88e6f9e65d7824fe90ecfbedb32e693e8296ce8eb16f5f13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 24 May 2021 12:08:46 +0000 Subject: [PATCH 1/2] Accepting request 895154 from home:pgajdos:python - %check: use %pytest_arch macro OBS-URL: https://build.opensuse.org/request/show/895154 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitstruct?expand=0&rev=5 --- python-bitstruct.changes | 5 +++++ python-bitstruct.spec | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/python-bitstruct.changes b/python-bitstruct.changes index a7b1259..50f1a2a 100644 --- a/python-bitstruct.changes +++ b/python-bitstruct.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 21 09:39:29 UTC 2021 - pgajdos@suse.com + +- %check: use %pytest_arch macro + ------------------------------------------------------------------- Tue Jul 21 05:57:35 UTC 2020 - Steve Kowalik diff --git a/python-bitstruct.spec b/python-bitstruct.spec index bb98f0e..d52a3d3 100644 --- a/python-bitstruct.spec +++ b/python-bitstruct.spec @@ -1,7 +1,7 @@ # # spec file for package python-bitstruct # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # Copyright (c) 2020, Martin Hauke # # All modifications and additions to the file contributed by third parties @@ -27,6 +27,7 @@ License: MIT URL: https://github.com/eerimoq/bitstruct Source: https://files.pythonhosted.org/packages/source/b/bitstruct/bitstruct-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -48,7 +49,8 @@ export CFLAGS="%{optflags}" %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python setup.py test +mv bitstruct bitstruct.hide +%pyunittest_arch discover -v tests %files %{python_files} %license LICENSE From bded752f403cec7be7b957812fe0fa9dace1c8e9ad64ca544a4ffb8f4b4efe4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 24 May 2021 12:09:07 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitstruct?expand=0&rev=6 --- python-bitstruct.changes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-bitstruct.changes b/python-bitstruct.changes index 50f1a2a..fd85cca 100644 --- a/python-bitstruct.changes +++ b/python-bitstruct.changes @@ -1,7 +1,7 @@ ------------------------------------------------------------------- Fri May 21 09:39:29 UTC 2021 - pgajdos@suse.com -- %check: use %pytest_arch macro +- %check: use %pyunittest_arch macro ------------------------------------------------------------------- Tue Jul 21 05:57:35 UTC 2020 - Steve Kowalik