Hey Pythonistas,
%pyproject_buildrequires has gained 2 new flags: -p and -g
-p reads runtime dependencies (and extras given via -x or read from tox configuration) directly from the pyproject.toml [project] table. This is useful for backends that do not implement the optional prepare_metadata_for_build_wheel PEP 517 hook. Ideally, this should replace all usages of the provisional -w flag (and we are filing Pull Requests for such cases). This was added to pyproject-rpm-macros 1.15 by Karolina Surma.
-g generates BuildRequires specified via given dependency group(s) from the pyproject.toml [dependency-groups] table. See PEP 735: https://peps.python.org/pep-0735/ If you use %pyproject_buildrequires with tox (-t/-e) and tox is configured to use a dependency group, this will work as well with tox 4.23+. This was added to pyproject-rpm-macros 1.16 by me.
The new 1.16 version of pyproject-rpm-macros is available in all Fedoras and is on its way to c10s and c9s.
tox 4.23 is currently available in Rawhide + updates-testing on stable Fedoras. I will also update it in EPEL 10 soon (it waits for pyproject-rpm-macros 1.16 in c10s). EPEL 9 is stuck with tox 3 for the time being (likely forever).
Happy packaging,
On 15. 11. 24 0:18, Miro Hrončok wrote:
The new 1.16 version of pyproject-rpm-macros is available in all Fedoras and is on its way to c10s and c9s.
This is now available in c10s and c9s, hence also in EPEL 10.0 and EPEL 9 Next Koji buildroots.
tox 4.23 is currently available in Rawhide + updates-testing on stable Fedoras. I will also update it in EPEL 10 soon.
tox 4.23 is now available in all Fedoras, the EPEL 10.0 update went stable today.
python-devel@lists.fedoraproject.org