From 051fa3fd299c42eeb4549ea5bf87ce7ce3898f5ca10ba995613fb188c4b64394 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 18 May 2021 12:23:07 +0000 Subject: [PATCH] Accepting request 894039 from home:pgajdos:python - use %pytest macro OBS-URL: https://build.opensuse.org/request/show/894039 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-distro?expand=0&rev=24 --- python-distro.changes | 5 +++++ python-distro.spec | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/python-distro.changes b/python-distro.changes index db170a7..debc945 100644 --- a/python-distro.changes +++ b/python-distro.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 18 10:55:49 UTC 2021 - pgajdos@suse.com + +- use %pytest macro + ------------------------------------------------------------------- Tue May 26 07:22:40 UTC 2020 - Petr Gajdos diff --git a/python-distro.spec b/python-distro.spec index 9aae15c..b9cb542 100644 --- a/python-distro.spec +++ b/python-distro.spec @@ -1,7 +1,7 @@ # # spec file for package python-distro # -# Copyright (c) 2020 SUSE LLC +# 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 @@ -31,11 +31,10 @@ Patch0: assert_locale.patch BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives BuildArch: noarch # SECTION test %if %{with test} -BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module pytest} %endif # /SECTION @@ -60,7 +59,7 @@ It is a renewed alternative implementation for Python's original platform.linux_ %if %{with test} %check # Explicit settings of locale is necessary gh#nir0s/distro#223 -LANG=en_US.utf8 %python_exec setup.py pytest +LANG=en_US.utf8 %pytest %endif %post