17
0

Accepting request 756872 from home:buschmann23:branches:devel:languages:python

- Update to 2019.9.26:
  * Fix long blockquotes wrapping.
  * Remove the trailing whitespaces that were added after wrapping list items & blockquotes.
  * Remove support for Python <= 3.4. Now requires Python 3.5+.
  * Fix memory leak when processing a document containing a <abbr> tag.
  * Fix AttributeError when reading text from stdin.
  * Fix UnicodeEncodeError when writing output to stdout.
- Disable build for Python 2

OBS-URL: https://build.opensuse.org/request/show/756872
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-html2text?expand=0&rev=33
This commit is contained in:
2019-12-16 12:43:11 +00:00
committed by Git OBS Bridge
parent 6af028befc
commit de8d2ed6a4
4 changed files with 20 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-html2text
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,9 +17,10 @@
%define upname html2text
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-%{upname}
Version: 2019.8.11
Version: 2019.9.26
Release: 0
Summary: Python script for turning HTML into Markdown text
License: GPL-3.0-only
@@ -63,6 +64,8 @@ sed -i '/^#!/d' %{upname}/__init__.py
%python_uninstall_alternative html2text
%check
# otherwise python 3.6 does not automatically select UTF-8 for console output
export LANG=en_US.UTF-8
%pytest
%files %{python_files}