14
0

- Add pytest4-mhroncok.patch by Miro Hroncok from

gh#html5lib/html5lib-python#414 to make testsuite passing under
  pytest4+.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-html5lib?expand=0&rev=36
This commit is contained in:
2019-11-01 10:51:33 +00:00
committed by Git OBS Bridge
parent cca9d07027
commit dde231b117
3 changed files with 156 additions and 2 deletions

View File

@@ -24,13 +24,16 @@ Summary: HTML parser based on the WHAT-WG Web Applications 1
License: MIT
URL: https://github.com/html5lib/html5lib-python
Source: https://files.pythonhosted.org/packages/source/h/html5lib/html5lib-%{version}.tar.gz
# PATCH-{FIX|FEATURE}-{OPENSUSE|SLE|UPSTREAM} name-of-file.patch gh#html5lib/html5lib-python#414 mcepl@suse.com
# This patch makes testsuite pass with pytest4
Patch0: pytest4-mhroncok.patch
BuildRequires: %{python_module Genshi}
BuildRequires: %{python_module datrie}
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module mock}
# https://github.com/html5lib/html5lib-python/issues/411
BuildRequires: %{python_module pytest < 4.0}
BuildRequires: %{python_module pytest-expect}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools >= 18.5}
BuildRequires: %{python_module six >= 1.9}
BuildRequires: %{python_module webencodings}
@@ -55,6 +58,7 @@ simple custom format
%prep
%setup -q -n html5lib-%{version}
%autopatch -p1
%build
%python_build