Hello community,
here is the log from the commit of package python-humanfriendly for openSUSE:Factory checked in at 2019-03-29 20:43:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-humanfriendly (Old)
and /work/SRC/openSUSE:Factory/.python-humanfriendly.new.25356 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-humanfriendly"
Fri Mar 29 20:43:35 2019 rev:10 rq:689802 version:4.18
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-humanfriendly/python-humanfriendly.changes 2019-03-13 09:14:44.575389751 +0100
+++ /work/SRC/openSUSE:Factory/.python-humanfriendly.new.25356/python-humanfriendly.changes 2019-03-29 20:43:38.358680591 +0100
@@ -1,0 +2,5 @@
+Fri Mar 29 10:46:17 UTC 2019 - Tomáš Chvátal
+
+- Simplify the multibuild conditioning and name creation
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-humanfriendly.spec ++++++
--- /var/tmp/diff_new_pack.k68gCU/_old 2019-03-29 20:43:39.234680769 +0100
+++ /var/tmp/diff_new_pack.k68gCU/_new 2019-03-29 20:43:39.242680770 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package python-humanfriendly
+# spec file for package python
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
@@ -18,16 +18,14 @@
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
+%define psuffix test
%bcond_without test
%else
+%define psuffix %{nil}
%bcond_with test
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%if %{with test}
-Name: python-humanfriendly-%{flavor}
-%else
-Name: python-humanfriendly
-%endif
+Name: python-humanfriendly%{psuffix}
Version: 4.18
Release: 0
Summary: Human friendly input/output for text interfaces using Python
@@ -85,23 +83,21 @@
}
%endif
+%if %{with test}
+%check
+%pytest humanfriendly/tests.py
+%endif
+
%if !%{with test}
%post
%python_install_alternative humanfriendly
%postun
%python_uninstall_alternative humanfriendly
-%endif
-
-%if %{with test}
-%check
-%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} humanfriendly/tests.py -v
-%endif
%files %{python_files}
%license LICENSE.txt
%doc README.rst
-%if !%{with test}
%python_alternative %{_bindir}/humanfriendly
%{python_sitelib}/humanfriendly
%{python_sitelib}/humanfriendly-%{version}-py*.egg-info