Miro Hrončok 2022-04-06 19:06:54 +02:00
parent 47595e37db
commit a3215ac3c4

View File

@ -78,7 +78,7 @@ echo '%{python3_sitelib}/%{distinfo}/' >> %{pyproject_files}
# assert the properly built package has no runtime requires
# if it does, we need to change the bootstrap metadata
test -f %{buildroot}%{python3_sitelib}/tomli-%{version}.dist-info/METADATA
! grep '^Requires-Dist:' %{buildroot}%{python3_sitelib}/tomli-%{version}.dist-info/METADATA
grep '^Requires-Dist:' %{buildroot}%{python3_sitelib}/tomli-%{version}.dist-info/METADATA && exit 1 || true
%pytest
%endif