We should document that: You should BR the Python you want (python3-devel). %pyproject_wheel/_install/%tox is not fully supported without %pyproject_buildrequires. The macros don't need pyproject.toml present (currently it starts with "These macros are useful for packaging Python projects that use the PEP 517 pyproject.toml file").
Another thing to add: FranciscoD: ...Sometimes the dep generation fails but doesn't kill the mock build---is that expected behaviour? ... shows logs ... mhroncok: FranciscoD: for all %generate_buildrequires, it ends with "an error" (exit 11) mhroncok: FranciscoD: that is rpm and/or mock behavior mhroncok: FranciscoD: mock interprets it as: go and install this stuff mhroncok: FranciscoD: once there is no more packages to install, mock proceeds with %build FranciscoD: OK, I guess that makes sense. Could this be documented somewhere please? mhroncok: FranciscoD: I can try, but where would you expect it to be documented? FranciscoD: I guess at the moment the https://src.fedoraproject.org/rpms/pyproject-rpm-macros readme is the only place FranciscoD: i expect it'll make it to the python packaging guidelines in the future mhroncok: FranciscoD: well, it is a general behavior of %generate_buildrequires mhroncok: FranciscoD: https://fedoraproject.org/wiki/Changes/DynamicBuildRequires FranciscoD: https://fedoraproject.org/wiki/Changes/DynamicBuildRequires explains it, thanks. I didn't remember that error 11 is "OK, proceed". FranciscoD: mhroncok: maybe a link to the change proposal in the pyproject-rpm-macros readme saying "For more information on DynamicBuildRequires, see the change proposal: ..."? FranciscoD: just so that others like me who may have missed it are directed to it, and don't have to ping you to direct us XD
PR: https://src.fedoraproject.org/rpms/pyproject-rpm-macros/pull-request/85