From 39e68a7406b06088ed7ffc56145efe7e22c95e65 Mon Sep 17 00:00:00 2001 From: Benjamin A. Beasley Date: Dec 17 2021 18:09:58 +0000 Subject: Remove build dependencies on nose and pytest-cov --- diff --git a/python-sure.spec b/python-sure.spec index f13296a..55fed5e 100644 --- a/python-sure.spec +++ b/python-sure.spec @@ -30,15 +30,8 @@ BuildRequires: python3-devel # https://github.com/gabrielfalcao/sure/pull/161 # Test dependencies -# TODO: remove the test dependency on nose -# https://fedoraproject.org/wiki/Changes/DeprecateNose -BuildRequires: python3dist(nose) # development.txt: pytest==6.2.4 BuildRequires: python3dist(pytest) -# development.txt: pytest-cov==2.12.1 -# (We don’t need coverage reports, but it is easier to add the dependency than -# to patch setup.cfg.) -BuildRequires: python3dist(pytest-cov) # Documentation dependencies %if %{with doc_pdf} @@ -89,6 +82,9 @@ sed -r -i \ cp -p '%{SOURCE1}' . +# Do not generate a coverage report; this obviates the BR on pytest-cov +sed -r -i 's/[[:blank:]]--cov=[^[:blank:]]+//' setup.cfg + %generate_buildrequires %pyproject_buildrequires -r @@ -110,7 +106,10 @@ install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 sure.1 %check -%pytest +# The old_api tests use python3dist(nose), which is deprecated and which we +# have removed from the BuildRequires: +# https://fedoraproject.org/wiki/Changes/DeprecateNose +%pytest --ignore=tests/test_old_api.py %files -n python3-sure -f %{pyproject_files}