diff --git a/python-waitress.spec b/python-waitress.spec index d22e6d3..394a73b 100644 --- a/python-waitress.spec +++ b/python-waitress.spec @@ -35,9 +35,13 @@ BuildRequires: python3-devel %prep %autosetup -n waitress-%{version}-nodocs +sed -e '/pytest-cover/d' \ + -e '/coverage/d' \ + -e '/addopts/d' \ + -i setup.cfg %generate_buildrequires -%pyproject_buildrequires +%pyproject_buildrequires -x testing %build %pyproject_wheel @@ -46,9 +50,8 @@ BuildRequires: python3-devel %pyproject_install %pyproject_save_files waitress -#check -# disable checks for now as they fail trying to lookup localhost in koji. -# +%check +%pytest %files -n python3-waitress -f %{pyproject_files} %license COPYRIGHT.txt LICENSE.txt @@ -58,6 +61,7 @@ BuildRequires: python3-devel %changelog * Wed May 10 2023 Carl George - 1.4.4-7 - Convert to pyproject macros +- Run test suite * Fri Jan 21 2022 Fedora Release Engineering - 1.4.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild