Hello community, here is the log from the commit of package python-distro for openSUSE:Factory checked in at 2019-02-06 14:06:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-distro (Old) and /work/SRC/openSUSE:Factory/.python-distro.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-distro" Wed Feb 6 14:06:41 2019 rev:7 rq:671830 version:1.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-distro/python-distro.changes 2018-06-29 22:27:03.298453921 +0200 +++ /work/SRC/openSUSE:Factory/.python-distro.new.28833/python-distro.changes 2019-02-06 14:06:46.430656307 +0100 @@ -1,0 +2,5 @@ +Tue Feb 5 11:48:38 CET 2019 - Matej Cepl <mc...@suse.com> + +- Add assert_locale.patch to warn about wrong locale. + +------------------------------------------------------------------- New: ---- assert_locale.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-distro.spec ++++++ --- /var/tmp/diff_new_pack.rwqDlF/_old 2019-02-06 14:06:47.014656201 +0100 +++ /var/tmp/diff_new_pack.rwqDlF/_new 2019-02-06 14:06:47.014656201 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-distro # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -27,6 +27,7 @@ Group: Development/Languages/Python URL: https://github.com/nir0s/distro Source: https://files.pythonhosted.org/packages/source/d/distro/distro-%{version}.tar.gz +Patch0: assert_locale.patch BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros BuildArch: noarch @@ -47,6 +48,7 @@ %prep %setup -q -n distro-%{version} +%patch0 -p1 %build %python_build @@ -56,8 +58,7 @@ %if %{with test} %check -# Explicit settings of locale is necessary -# https://github.com/nir0s/distro/issues/223 +# Explicit settings of locale is necessary gh#nir0s/distro#223 LANG=en_US.utf8 %python_exec setup.py pytest %endif ++++++ assert_locale.patch ++++++ --- /dev/null +++ b/tests/__init__.py @@ -0,0 +1,4 @@ +import locale +enc = locale.getpreferredencoding() +assert enc is not None and enc.lower() != "ansi_x3.4-1968", \ + "Tests don't work with locale encoding set to {}".format(enc)