On 14. 06. 21 21:00, Miro Hrončok wrote:
I tentatively agree with the idea of requiring an “import foo.bar” smoke test
in cases where the upstream tests cannot be used, especially since
pyproject-rpm-macros with %pyproject_buildrequires makes it much easier to
add runtime dependencies as BR’s. (It may not always be practical to
explicitly import all subpackages/modules in a complicated package, but even
importing the top-level package is a good start). It would catch a large
portion of the FTI bugs that appear in practice.
We could very well add a macro helper that imports modules from the
%{buildroot} and:
- when given positional arguments, import the given names
Proof of concept:
https://src.fedoraproject.org/rpms/python-rpm-macros/pull-request/99
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-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/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure