From 3741963f03c08bfb5643b275863c7489753b5dc0c142af168ecd2498888c5d37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 19 Jul 2019 12:03:38 +0000 Subject: [PATCH] - 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 --- python-bleach.changes | 5 +++++ python-bleach.spec | 8 +++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/python-bleach.changes b/python-bleach.changes index 3933183..0058eb7 100644 --- a/python-bleach.changes +++ b/python-bleach.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jul 19 12:02:58 UTC 2019 - Tomáš Chvátal + +- Restrict pytest to <5.0; upstream has an issue already reported + ------------------------------------------------------------------- Sun Mar 3 09:14:50 UTC 2019 - John Vandenberg diff --git a/python-bleach.spec b/python-bleach.spec index 0f4242e..9a48cbe 100644 --- a/python-bleach.spec +++ b/python-bleach.spec @@ -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