forked from pool/python-distro
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
This commit is contained in:
parent
1c4c90584e
commit
051fa3fd29
@ -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>
|
||||||
|
|
||||||
|
@ -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
|
||||||
@ -35,7 +35,6 @@ 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user