15
0

- Attempt to fix some python 3.7 failures by exporting LANG

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kitchen?expand=0&rev=4
This commit is contained in:
Tomáš Chvátal
2018-08-29 12:47:50 +00:00
committed by Git OBS Bridge
parent b16685b881
commit f515ae0a67
2 changed files with 13 additions and 8 deletions

View File

@@ -22,19 +22,18 @@ Name: python-kitchen
Version: 1.2.5
Release: 0
Summary: Kitchen contains a cornucopia of useful code
License: LGPL-2.1+
License: LGPL-2.1-or-later
Group: Development/Languages/Python
Url: https://fedorahosted.org/kitchen/
URL: https://fedorahosted.org/kitchen/
Source: https://files.pythonhosted.org/packages/source/k/kitchen/kitchen-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
# SECTION tests
BuildRequires: %{python_module nose}
# /SECTION
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
# SECTION tests
BuildRequires: %{python_module nose}
# /SECTION
%python_subpackages
%description
@@ -52,6 +51,7 @@ sed -i '1s/^#!.*//' kitchen2/kitchen/pycompat24/base64/_base64.py
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG='en_US.UTF8'
%{python_expand # run test
%if $python == python2
pushd kitchen2
@@ -62,8 +62,8 @@ nosetests-%{$python_version}
popd}
%files %{python_files}
%defattr(-,root,root,-)
%doc COPYING COPYING.LESSER NEWS.rst README.rst
%license COPYING COPYING.LESSER
%doc NEWS.rst README.rst
%{python_sitelib}/*
%changelog