Dne 09. 06. 20 v 22:35 Miro Hrončok napsal(a): > On 09. 06. 20 21:49, Miroslav Suchý wrote: >> Hi. >> On my system: >> du -ch /usr/lib/python3.8/site-packages/*/tests/ >> 18 MB in total >> >> I did not see anything in Guidelines about packaging tests. Do we >> really need them in final package? > > It depends on the package, but in majority of the cases, we don't. > >> Are there any >> objection to propose in Guidelines something like: >> >> %exclude %{python3_sitelib}/YOUR-MODULE/tests > > I am all in to say the tests SHOULD NOT be packaged (assuming the > package works without them) and SHOULD either be removed or packaged > into a -tests subpackage. In Ruby world, there used to be guideline to exclude the tests for some while. However, removing the test from the package means that we would differ from upstream. Therefore nowadays, we typically keep the test suite as part of -doc subpackage. But if there was more generic guidelines, such as -test(s) subpackage, I would not object. Vít > > > However, somebody might argue %exclude is not the bast tool for the job: > > https://github.com/rpm-software-management/rpm/issues/994#issuecomment-576577179 > > > > Side note: rpmlint upstream wants to warn about exactly this: > > https://github.com/rpm-software-management/rpmlint/pull/430 > _______________________________________________ packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx