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}