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