Strip tests from the installed files

It's a waste of space, plus it causes noarch inconsistency (so,
failed build) now we're wiping one of these in %prep on s390x.
This commit is contained in:
Adam Williamson 2024-06-17 16:53:24 -07:00
parent b13fe9022b
commit e31444d0f7

View File

@ -152,6 +152,8 @@ rm -rf html/.{doctrees,buildinfo}
%install
%pyproject_install
# we do not want to ship test files
find %{buildroot}%{python3_sitelib}/%{srcname} -type d -name tests -print0 | xargs -0 rm -rf
%pyproject_save_files %{srcname}