enable tests by default
We BR the test dependencies unconditionally. Run the tests as well. Avoid warnings about pytest.mark.no_cover marker; we disable disable coverage entirely.
This commit is contained in:
parent
cba2f8a237
commit
869be6c50b
@ -1,4 +1,5 @@
|
||||
%bcond_with tests
|
||||
# pass --without tests to skip the test suite
|
||||
%bcond_without tests
|
||||
|
||||
Name: rpmlint
|
||||
Version: 2.3.0
|
||||
@ -50,6 +51,9 @@ sed -i 's/python-magic/file-magic/g' setup.py
|
||||
# Don't lint the code or measure coverage in %%check
|
||||
sed -i -e 's/ --cov=rpmlint//' -e 's/ --flake8//' setup.cfg
|
||||
|
||||
# Avoid warnings about pytest.mark.no_cover marker
|
||||
sed -i '/^@pytest.mark.no_cover/d' test/test_lint.py
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
@ -76,6 +80,7 @@ cp -a %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{buildroot}%{_sysc
|
||||
* Sat Sep 24 2022 Todd Zullinger <tmz@pobox.com> - 2.3.0-1
|
||||
- update to 2.3.0 (rhbz#2088759)
|
||||
- convert license to SPDX and correct to GPL-2.0-or-later
|
||||
- enable tests by default, avoid warnings about pytest.mark.no_cover marker
|
||||
|
||||
* Sat Sep 24 2022 Tom Callaway <spot@fedoraproject.org> - 2.2.0-7
|
||||
- update licenses.toml to reflect change in Fedora licensing identifiers
|
||||
|
Loading…
Reference in New Issue
Block a user