Drop spurious test BuildRequires

This commit is contained in:
Benjamin A. Beasley
2024-08-21 07:36:01 -04:00
parent ee8e800388
commit 7ab2a499b1
+8 -5
View File
@@ -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