forked from pool/python-html2text
- Update to 2019.8.11:
* Fix #201: handle ‎/‏ marks mid-text within stressed tags or right after stressed tags. * Feature #213: images_as_html config option to always generate an img html tag. preserves "height", "width" and "alt" if possible. * Remove support for end-of-life Pythons. Now requires Python 2.7 or 3.4+. * Remove support for retrieving HTML over the network. * Add __main__.py module to allow running the CLI using python -m html2text .... * Fix #238: correct spacing when a HTML entity follows a non-stressed tags which follow a stressed tag. * Remove unused or deprecated: * html2text.compat.escape() * html2text.config.RE_UNESCAPE * html2text.HTML2Text.replaceEntities() * html2text.HTML2Text.unescape() * html2text.unescape() * Fix #208: handle LEFT-TO-RIGHT MARK after a stressed tag. - Remove patch remove_unittest2.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-html2text?expand=0&rev=31
This commit is contained in:
committed by
Git OBS Bridge
parent
725174c03e
commit
6af028befc
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-html2text
|
||||
#
|
||||
# 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
|
||||
@@ -16,20 +16,17 @@
|
||||
#
|
||||
|
||||
|
||||
#
|
||||
%define upname html2text
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without tests
|
||||
Name: python-%{upname}
|
||||
Version: 2018.1.9
|
||||
Version: 2019.8.11
|
||||
Release: 0
|
||||
Summary: Python script for turning HTML into Markdown text
|
||||
License: GPL-3.0-only
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/Alir3z4/html2text/
|
||||
Source: https://files.pythonhosted.org/packages/source/h/%{upname}/%{upname}-%{version}.tar.gz
|
||||
Patch0: remove_unittest2.patch
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -44,7 +41,6 @@ Markdown (a text-to-HTML format).
|
||||
|
||||
%prep
|
||||
%setup -q -n %{upname}-%{version}
|
||||
%patch0 -p1
|
||||
# remove useless shebang
|
||||
sed -i '/^#!/d' %{upname}/__init__.py
|
||||
|
||||
@@ -66,10 +62,8 @@ sed -i '/^#!/d' %{upname}/__init__.py
|
||||
%postun
|
||||
%python_uninstall_alternative html2text
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
%endif
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%license COPYING
|
||||
|
||||
Reference in New Issue
Block a user