Accepting request 809533 from home:apritschet:branches:openSUSE:Factory

Set encodings to UTF-8 to avoid UnicodeDecodeError (otherwise building for SLE12 will fail)

OBS-URL: https://build.opensuse.org/request/show/809533
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-responses?expand=0&rev=25
This commit is contained in:
Tomáš Chvátal 2020-05-27 13:10:38 +00:00 committed by Git OBS Bridge
parent 9a30a3c3f4
commit 011481b120
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 27 12:22:21 UTC 2020 - Andreas Hasenkopf <ahasenkopf@suse.com>
- Set encodings to UTF-8 to avoid UnicodeDecodeError
-------------------------------------------------------------------
Thu Mar 19 08:22:52 UTC 2020 - pgajdos@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-responses
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -54,9 +54,13 @@ about the library.
%setup -q -n responses-%{version}
%build
export LANG="en_US.UTF8"
export PYTHONIOENCODING="utf_8"
%python_build
%install
export LANG="en_US.UTF8"
export PYTHONIOENCODING="utf_8"
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}