forked from pool/python-humanfriendly
- Update to 2.3.1:
* updated tests for upstream wycheproof changes * many other tiny test tweaks OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=11
This commit is contained in:
committed by
Git OBS Bridge
parent
6f0556a8de
commit
ab2879b4b7
3
_multibuild
Normal file
3
_multibuild
Normal file
@@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>test</package>
|
||||
</multibuild>
|
||||
3
humanfriendly-4.16.1.tar.gz
Normal file
3
humanfriendly-4.16.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ed1e98ae056b597f15b41bddcc32b9f21e6ab4f3445f9faad1668675de759f7b
|
||||
size 343828
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d0e74171b87318a94b99520e4f0c5651e944b5f11d696c46be3330bb82b85300
|
||||
size 319383
|
||||
@@ -1,3 +1,22 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 17 13:50:03 UTC 2018 - tchvatal@suse.com
|
||||
|
||||
- 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 14 09:04:56 UTC 2018 - ms@suse.com
|
||||
|
||||
|
||||
@@ -16,32 +16,41 @@
|
||||
#
|
||||
|
||||
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%bcond_without test
|
||||
%else
|
||||
%bcond_with test
|
||||
%endif
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
# Dependency loop with colorlogs
|
||||
%bcond_with test
|
||||
%if %{with test}
|
||||
Name: python-humanfriendly-%{flavor}
|
||||
%else
|
||||
Name: python-humanfriendly
|
||||
Version: 4.8
|
||||
%endif
|
||||
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}
|
||||
%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
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-monotonic
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module coloredlogs >= 2}
|
||||
%endif
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%ifpython2
|
||||
Requires: python-monotonic
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -65,32 +74,37 @@ text interfaces more user friendly.
|
||||
%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
|
||||
%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
|
||||
|
||||
Reference in New Issue
Block a user