Accepting request 894049 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/894049
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-distro?expand=0&rev=12
This commit is contained in:
Dominique Leuenberger 2021-05-20 17:24:41 +00:00 committed by Git OBS Bridge
commit e5b65141ad
2 changed files with 8 additions and 4 deletions

View File

@ -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 <pgajdos@suse.com> Tue May 26 07:22:40 UTC 2020 - Petr Gajdos <pgajdos@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-distro # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -31,11 +31,10 @@ Patch0: assert_locale.patch
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun): update-alternatives Requires(postun):update-alternatives
BuildArch: noarch BuildArch: noarch
# SECTION test # SECTION test
%if %{with test} %if %{with test}
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
%endif %endif
# /SECTION # /SECTION
@ -60,7 +59,7 @@ It is a renewed alternative implementation for Python's original platform.linux_
%if %{with test} %if %{with test}
%check %check
# Explicit settings of locale is necessary gh#nir0s/distro#223 # 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 %endif
%post %post