forked from pool/python-pylint
- set locale during build/test to fix build on older releases (bsc#1124989)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=104
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 18 19:37:36 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- set locale during build/test to fix build on older releases (bsc#1124989)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 13 15:49:50 CET 2019 - Matej Cepl <mcepl@suse.com>
|
Wed Nov 13 15:49:50 CET 2019 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pylint
|
# spec file for package python-pylint
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LLC.
|
# Copyright (c) 2020 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
|
||||||
@@ -72,9 +72,11 @@ feature.
|
|||||||
%setup -q -n pylint-pylint-%{version}
|
%setup -q -n pylint-pylint-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
export LC_ALL="en_US.UTF-8"
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
export LC_ALL="en_US.UTF-8"
|
||||||
%python_install
|
%python_install
|
||||||
for p in pylint epylint pyreverse symilar ; do
|
for p in pylint epylint pyreverse symilar ; do
|
||||||
%python_clone -a %{buildroot}%{_bindir}/$p
|
%python_clone -a %{buildroot}%{_bindir}/$p
|
||||||
@@ -91,6 +93,7 @@ done
|
|||||||
%check
|
%check
|
||||||
# test_by_module_statement_value - fails due to %%pytest macro way of execution
|
# test_by_module_statement_value - fails due to %%pytest macro way of execution
|
||||||
export PYTHONDONTWRITEBYTECODE=1
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
|
export LC_ALL="en_US.UTF-8"
|
||||||
%pytest -k "not test_by_module_statement_value"
|
%pytest -k "not test_by_module_statement_value"
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
|
Reference in New Issue
Block a user