Hello community,
here is the log from the commit of package python-humanfriendly for
openSUSE:Factory checked in at 2018-08-22 14:19:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-humanfriendly (Old)
and /work/SRC/openSUSE:Factory/.python-humanfriendly.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-humanfriendly"
Wed Aug 22 14:19:59 2018 rev:6 rq:630720 version:4.16.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-humanfriendly/python-humanfriendly.changes
2018-08-18 00:06:48.227560487 +0200
+++
/work/SRC/openSUSE:Factory/.python-humanfriendly.new/python-humanfriendly.changes
2018-08-22 14:20:47.154413192 +0200
@@ -1,0 +2,19 @@
+Fri Aug 17 13:50:03 UTC 2018 - [email protected]
+
+- Update to 4.16.1:
+ * Added humanfriendly.text.compact_empty_lines() function.
+ * Enable optional html_to_ansi(data[, callback]) argument.
+ * Added a code sample and screenshot to the HTMLConverter documentation.
+ * Emit vertical whitespace for block tags like <div>, <p> and <pre> and
post-process the generated output in __call__() to compact empty lines.
+ * Don’t pre-process preformatted text using the user defined text callback.
+ * Improve robustness against malformed HTML (previously an IndexError would
be raised when a closing </a> tag was encountered without a corresponding
opening <a> tag).
+ * Emit an ANSI reset code when HTMLConverter.close() is called and a style
is still active (improves robustness against malformed HTML).
+ * Support for 24-bit (RGB) terminal colors. Works by accepting a tuple or
list with three integers representing an RGB (red, green, blue) color.
+ * Support for italic text rendering on the terminal.
+ * Make format_timespan() accept datetime.timedelta objects (fixes #27).
+ * Add license key to setup.py script (pointed out to me in coloredlogs pull
request #53).
+ * Added the Timer.sleep() method to sleep “no more than” the given number of
seconds.
+ * Added the format_rst_table() function to render RST (reStructuredText)
tables.
+- Enable and make sure tests are run
+
+-------------------------------------------------------------------
Old:
----
humanfriendly-4.8.tar.gz
New:
----
_multibuild
humanfriendly-4.16.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-humanfriendly.spec ++++++
--- /var/tmp/diff_new_pack.PvPQtc/_old 2018-08-22 14:20:47.650414367 +0200
+++ /var/tmp/diff_new_pack.PvPQtc/_new 2018-08-22 14:20:47.654414376 +0200
@@ -16,32 +16,41 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-# Dependency loop with colorlogs
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%bcond_without test
+%else
%bcond_with test
-Name: python-humanfriendly
-Version: 4.8
+%endif
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+Version: 4.16.1
Release: 0
Summary: Human friendly input/output for text interfaces using Python
License: MIT
Group: Development/Languages/Python
-Url: https://github.com/xolox/humanfriendly
+URL: https://github.com/xolox/python-humanfriendly
Source:
https://files.pythonhosted.org/packages/source/h/humanfriendly/humanfriendly-%{version}.tar.gz
-BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
-BuildRequires: python-monotonic
BuildRequires: python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+BuildArch: noarch
%if %{with test}
+Name: python-humanfriendly-%{flavor}
+%else
+Name: python-humanfriendly
+%endif
+%if %{with test}
+BuildRequires: %{python_module capturer >= 2.1}
BuildRequires: %{python_module coloredlogs >= 2}
+BuildRequires: %{python_module pytest >= 3.0.7}
+BuildRequires: %{python_module pytest-cov >= 2.4.0}
+BuildRequires: python2-monotonic
%endif
%ifpython2
Requires: python-monotonic
%endif
-BuildArch: noarch
-Requires(post): update-alternatives
-Requires(postun): update-alternatives
-
%python_subpackages
%description
@@ -65,32 +74,37 @@
%python_build
%install
+%if !%{with test}
%python_install
%python_clone -a %{buildroot}%{_bindir}/humanfriendly
%{python_expand chmod a+x %{buildroot}%{$python_sitelib}/humanfriendly/tests.py
-sed -i "s|#!/usr/bin/env python|#!%__$python|"
%{buildroot}%{$python_sitelib}/humanfriendly/tests.py
+sed -i "s|#!%{_bindir}/env python|#!%__$python|"
%{buildroot}%{$python_sitelib}/humanfriendly/tests.py
$python -m compileall -d %{$python_sitelib}
%{buildroot}%{$python_sitelib}/humanfriendly/
$python -O -m compileall -d %{$python_sitelib}
%{buildroot}%{$python_sitelib}/humanfriendly/
%fdupes %{buildroot}%{$python_sitelib}
}
+%endif
+%if !%{with test}
%post
%python_install_alternative humanfriendly
%postun
%python_uninstall_alternative humanfriendly
+%endif
%if %{with test}
%check
-%python_exec setup.py test
-popd
+%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}
py.test-%{$python_version} humanfriendly/tests.py -v
%endif
%files %{python_files}
-%defattr(-,root,root,-)
-%doc LICENSE.txt README.rst
+%license LICENSE.txt
+%doc README.rst
+%if !%{with test}
%python_alternative %{_bindir}/humanfriendly
%{python_sitelib}/humanfriendly
%{python_sitelib}/humanfriendly-%{version}-py*.egg-info
+%endif
%changelog
++++++ _multibuild ++++++
<multibuild>
<package>test</package>
</multibuild>
++++++ humanfriendly-4.8.tar.gz -> humanfriendly-4.16.1.tar.gz ++++++
++++ 2473 lines of diff (skipped)