- Restrict pytest to <5.0; upstream has an issue already reported

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bleach?expand=0&rev=26
This commit is contained in:
Tomáš Chvátal 2019-07-19 12:03:38 +00:00 committed by Git OBS Bridge
parent b1e5f6a0bb
commit 3741963f03
2 changed files with 8 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jul 19 12:02:58 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Restrict pytest to <5.0; upstream has an issue already reported
-------------------------------------------------------------------
Sun Mar 3 09:14:50 UTC 2019 - John Vandenberg <jayvdb@gmail.com>

View File

@ -28,7 +28,8 @@ URL: http://github.com/jsocol/bleach
Source: https://files.pythonhosted.org/packages/source/b/bleach/bleach-%{version}.tar.gz
Patch0: de-vendor.patch
BuildRequires: %{python_module html5lib >= 1.0.0}
BuildRequires: %{python_module pytest >= 3.0.0}
# https://github.com/mozilla/bleach/issues/459
BuildRequires: %{python_module pytest < 5.0}
BuildRequires: %{python_module pytest-runner >= 2.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six >= 1.9}
@ -63,13 +64,10 @@ rm -rf bleach/_vendor
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
py.test-%{$python_bin_suffix}
}
%pytest
%files %{python_files}
%license LICENSE