From 7ab2a499b15984aea5f5a62f36670e069468dfe4 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Wed, 21 Aug 2024 07:36:01 -0400 Subject: [PATCH] Drop spurious test BuildRequires --- python-flexcache.spec | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/python-flexcache.spec b/python-flexcache.spec index 90a60a3..c014a78 100644 --- a/python-flexcache.spec +++ b/python-flexcache.spec @@ -10,7 +10,13 @@ Source: %{pypi_source flexcache} BuildArch: noarch BuildRequires: python3-devel -BuildRequires: tomcli + +# See the test extra in pyproject.toml. 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/flexacache/pull/3). +BuildRequires: %{py3_dist pytest} %global common_description %{expand: A robust and extensible package to cache on disk the result of expensive @@ -27,13 +33,10 @@ Summary: %{summary} %prep %autosetup -n flexcache-%{version} -# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters -tomcli set pyproject.toml lists delitem project.optional-dependencies.test \ - 'pytest-cov*' %generate_buildrequires -%pyproject_buildrequires -x test +%pyproject_buildrequires %build