From a5cb936436757f4098f7c426f32d53baaffee6f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Sat, 5 Jun 2021 23:43:13 +0200 Subject: [PATCH] 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. --- rpmlint.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpmlint.spec b/rpmlint.spec index be6ffcd..efb168b 100644 --- a/rpmlint.spec +++ b/rpmlint.spec @@ -25,8 +25,6 @@ Requires: /usr/bin/appstream-util # tests BuildRequires: /usr/bin/appstream-util BuildRequires: %{py3_dist pytest} -BuildRequires: %{py3_dist pytest-cov} -BuildRequires: %{py3_dist pytest-flake8} BuildRequires: %{py3_dist pytest-xdist} BuildRequires: %{py3_dist pyenchant} BuildRequires: %{py3_dist file-magic} @@ -39,6 +37,8 @@ and source packages as well as spec files can be checked. %prep %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 %py3_build