Remove build dependencies on nose and pytest-cov
This commit is contained in:
parent
d4a282c544
commit
39e68a7406
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user