From 1a1203bf6d6989a76401e7610e6a630f923acc51 Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Mon, 14 Feb 2022 16:06:33 +0000 Subject: [PATCH] Disable tests for lack of html5lib --- python-soupsieve.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-soupsieve.spec b/python-soupsieve.spec index 250cae7..4c016ef 100644 --- a/python-soupsieve.spec +++ b/python-soupsieve.spec @@ -1,4 +1,4 @@ -%bcond_without tests +%bcond_with tests Name: python-soupsieve Version: 2.3.1 @@ -12,6 +12,7 @@ Source0: https://github.com/facelessuser/soupsieve/archive/%{version}/%{n BuildArch: noarch BuildRequires: python3-devel +BuildRequires: python3-beautifulsoup4 %global _description %{expand: Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. @@ -62,6 +63,8 @@ sed -i 's/\(py\.test.*\)$/\1 \{posargs\}/' tox.ini # test_contains_cdata_html and test_contains_own_cdata_html are disabled to unblock Python 3.10 rebuild # downstream report: https://bugzilla.redhat.com/show_bug.cgi?id=1962458 %tox -- -- -k 'not test_namespace_xml_with_namespace and not test_contains_cdata_html and not test_contains_own_cdata_html' +%else +%pyproject_check_import %endif %files -n python3-soupsieve -f %{pyproject_files}