Don't lint the code or measure coverage in %check

Linters and test coverage makes sense in upstream CI, but not that much in Fedora.
This makes testing rpmlint with newer Python releases easier.

It also partially unblocks the Python 3.10 rebuild.
This commit is contained in:
Miro Hrončok 2021-06-05 23:43:13 +02:00
parent ef464bc81e
commit a5cb936436

View File

@ -25,8 +25,6 @@ Requires: /usr/bin/appstream-util
# tests # tests
BuildRequires: /usr/bin/appstream-util BuildRequires: /usr/bin/appstream-util
BuildRequires: %{py3_dist pytest} BuildRequires: %{py3_dist pytest}
BuildRequires: %{py3_dist pytest-cov}
BuildRequires: %{py3_dist pytest-flake8}
BuildRequires: %{py3_dist pytest-xdist} BuildRequires: %{py3_dist pytest-xdist}
BuildRequires: %{py3_dist pyenchant} BuildRequires: %{py3_dist pyenchant}
BuildRequires: %{py3_dist file-magic} BuildRequires: %{py3_dist file-magic}
@ -39,6 +37,8 @@ and source packages as well as spec files can be checked.
%prep %prep
%setup -q -n %{name}-%{version} %setup -q -n %{name}-%{version}
# Don't lint the code or measure coverage in %%check
sed -i -e 's/ --cov=rpmlint//' -e 's/ --flake8//' setup.cfg
%build %build
%py3_build %py3_build