From c0d472b7d4185497a63dd58a46870af830566ef6 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Tue, 20 Aug 2024 09:00:24 -0400 Subject: [PATCH] Drop some unnecessary testing BuildRequires --- python-flexparser.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/python-flexparser.spec b/python-flexparser.spec index e7a64f9..df80528 100644 --- a/python-flexparser.spec +++ b/python-flexparser.spec @@ -11,6 +11,12 @@ BuildArch: noarch BuildRequires: python3-devel +# See requirements.test.txt. We list test dependencies manually since we do not +# want pytest-cov +# (https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters) +# and the other pytest plugins are spurious +# (https://github.com/hgrecco/flexparser/pull/10). + %global common_description %{expand: The idea is quite simple. You write a class for every type of content (called here ParsedStatement) you need to parse. Each class should have a from_string @@ -28,12 +34,10 @@ Summary: %{summary} %prep %autosetup -n flexparser-%{version} -# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters -sed -r -i 's/^([[:blank:]]*)\b(pytest-cov)\b/\1# \2/' requirements.test.txt %generate_buildrequires -%pyproject_buildrequires -x test +%pyproject_buildrequires %build