From e1339b3e4428036f0321dca85cfab35435249b64c687f26a8a37ed0fe118458f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 12 Aug 2019 14:16:06 +0000 Subject: [PATCH] Accepting request 722677 from home:mcalabkova:branches:devel:languages:python MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update to version 5.6 * The unescape_html function now supports all the HTML5 entities that appear in html.entities.html5, including those with long names such as ˝. * Unescaping of numeric HTML entities now uses the standard library's html.unescape, making edge cases consistent. * On top of Python's support for HTML5 entities, ftfy will also convert HTML escapes of common Latin capital letters that are (nonstandardly) written in all caps, such as Ñ for Ñ. OBS-URL: https://build.opensuse.org/request/show/722677 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ftfy?expand=0&rev=9 --- python-ftfy.changes | 13 +++++++++++++ python-ftfy.spec | 17 ++++++----------- v5.5.1.tar.gz | 3 --- v5.6.tar.gz | 3 +++ 4 files changed, 22 insertions(+), 14 deletions(-) delete mode 100644 v5.5.1.tar.gz create mode 100644 v5.6.tar.gz diff --git a/python-ftfy.changes b/python-ftfy.changes index 61c531b..7245447 100644 --- a/python-ftfy.changes +++ b/python-ftfy.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Mon Aug 12 12:31:18 UTC 2019 - Marketa Calabkova + +- Update to version 5.6 + * The unescape_html function now supports all the HTML5 entities + that appear in html.entities.html5, including those with long + names such as ˝. + * Unescaping of numeric HTML entities now uses the standard library's + html.unescape, making edge cases consistent. + * On top of Python's support for HTML5 entities, ftfy will also + convert HTML escapes of common Latin capital letters that are + (nonstandardly) written in all caps, such as Ñ for Ñ. + ------------------------------------------------------------------- Thu Oct 18 09:57:30 UTC 2018 - Tomáš Chvátal diff --git a/python-ftfy.spec b/python-ftfy.spec index a8d80ca..15b2291 100644 --- a/python-ftfy.spec +++ b/python-ftfy.spec @@ -1,7 +1,7 @@ # # spec file for package python-ftfy # -# 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 @@ -19,24 +19,23 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-ftfy -Version: 5.5.1 +Version: 5.6 Release: 0 Summary: Python module for repairing mis-decoded Unicode text License: MIT Group: Development/Languages/Python -Url: http://github.com/LuminosoInsight/python-ftfy +URL: https://github.com/LuminosoInsight/python-ftfy Source: https://github.com/LuminosoInsight/python-ftfy/archive/v%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-wcwidth +BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module pytest} BuildRequires: %{python_module wcwidth} # /SECTION -Requires: python-wcwidth -BuildArch: noarch - %python_subpackages %description @@ -54,12 +53,8 @@ put through an encode/decode cycle with different encodings. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%{python_expand export PYTHONDONTWRITEBYTECODE=1 -export LANG=en_US.UTF-8 -export PYTHONPATH=%{buildroot}%{$python_sitelib} export PATH="$PATH:%{buildroot}%{_bindir}" -py.test-%{$python_bin_suffix} -} +%pytest %files %{python_files} %doc CHANGELOG.md README.md diff --git a/v5.5.1.tar.gz b/v5.5.1.tar.gz deleted file mode 100644 index 612b0b2..0000000 --- a/v5.5.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a61cf8212baa3cd80e1fb6cd379b665f603016a1e97253a7f55938c748cc23bf -size 68188 diff --git a/v5.6.tar.gz b/v5.6.tar.gz new file mode 100644 index 0000000..5487fc5 --- /dev/null +++ b/v5.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2486acff2a93b217b21d79fcda23ac42b781bd8e9ac198e13a11a780edd695d4 +size 69685