Hello community,

here is the log from the commit of package python-distro for openSUSE:Factory 
checked in at 2018-06-29 22:27:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-distro (Old)
 and      /work/SRC/openSUSE:Factory/.python-distro.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-distro"

Fri Jun 29 22:27:00 2018 rev:6 rq:617150 version:1.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-distro/python-distro.changes      
2018-05-11 09:19:07.480668377 +0200
+++ /work/SRC/openSUSE:Factory/.python-distro.new/python-distro.changes 
2018-06-29 22:27:03.298453921 +0200
@@ -1,0 +2,7 @@
+Wed Jun 13 16:52:25 UTC 2018 - [email protected]
+
+- Enable tests properly (this is pytest, not unittest), 
+  it is necessary to explicitly set locale to an Unicode one
+  (https://github.com/nir0s/distro/issues/223)
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-distro.spec ++++++
--- /var/tmp/diff_new_pack.QBUw86/_old  2018-06-29 22:27:03.714453606 +0200
+++ /var/tmp/diff_new_pack.QBUw86/_new  2018-06-29 22:27:03.718453602 +0200
@@ -25,18 +25,19 @@
 Summary:        Linux Distribution - a Linux OS platform information API
 License:        Apache-2.0
 Group:          Development/Languages/Python
-Url:            https://github.com/nir0s/distro
+URL:            https://github.com/nir0s/distro
 Source:         
https://files.pythonhosted.org/packages/source/d/distro/distro-%{version}.tar.gz
-BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  python-rpm-macros
+BuildArch:      noarch
 # SECTION test
 %if %{with test}
+BuildRequires:  %{python_module flake8}
+BuildRequires:  %{python_module pytest-cov}
+BuildRequires:  %{python_module pytest-runner}
 BuildRequires:  %{python_module pytest}
 %endif
 # /SECTION
-BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -55,11 +56,12 @@
 
 %if %{with test}
 %check
-%python_exec setup.py test
+# Explicit settings of locale is necessary
+# https://github.com/nir0s/distro/issues/223
+LANG=en_US.utf8 %python_exec setup.py pytest
 %endif
 
 %files %{python_files}
-%defattr(-,root,root,-)
 %doc CHANGELOG.md README.md README.rst
 %python3_only %{_bindir}/distro
 %{python_sitelib}/*


Reply via email to