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:
commit
e5b65141ad
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user