Open pkking opened 1 year ago
It looks like this project only contains the typing stubs (.pyi
files, not .py
) so there's nothing to import during the %check
phase of the package build. To build the package as RPM you should edit the generated python-types-toml.spec file and remove the %check
section entirely.
FTR we tried to mitigate a similar but different issue via https://src.fedoraproject.org/rpms/pyproject-rpm-macros/c/fa49bf2efbcb01e9b80a592d24073e1afa6acd0c?branch=rawhide
True. To make the build of such packages seamless, we could change the behavior of %pyproject_check_import
and accept it when it doesn't detect any modules. I wouldn't make it default though, this could be something possible to use in related projects, similarly like pyp2spec invokes %pyproject_save_files '*' +auto
but forbidden in the actual distribution.
Possibly. That would enable automatic copr build of packages without Python modules.
What i run:
And i got: