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,
--
Miro Hrončok
--
Phone: +420777974800
Fedora Matrix: mhroncok
--
_______________________________________________
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org
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/python-devel@lists.fedoraproject.org
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue