Hello,
a new version of pyproject-rpm-macros (0-43) landed in Rawhide. I'll try to
briefly summarize what is new.

%pyproject_buildrequires macro can now optionally take file names as
positional arguments and generate additional build dependencies from them.
You can supply multiple file names to %pyproject_buildrequires macro. E.g.:

  %generate_buildrequires
  %pyproject_buildrequires requirements/tests.in requirements/docs.in

This adds the requirements listed in the files as python3dist(...)
BuildRequires. Other usages of %pyproject_buildrequires remains the same as
before.

In case you want to use this feature without using the Python build system
(PEP517/setup.py) you can use a new -N (i.e. "No build system") option to
only install the dependencies from the provided files. With -N, any other
automatic generation of requirements is entirely disabled. -N option cannot
be used in combination with other %pyproject_buildrequires options (-r, -e,
-t, -x). In order to use the -N option, you need to have
pyproject-rpm-macros >= 0-43 installed on your developer machine as well
(or no version of that package at all).

Updates are ready for Fedora 33 and 34:

    F34: https://bodhi.fedoraproject.org/updates/FEDORA-2021-5476e05676
    F33: https://bodhi.fedoraproject.org/updates/FEDORA-2021-cc2936539e

Backport for CentOS Stream 9 can be found here:

https://gitlab.com/redhat/centos-stream/rpms/pyproject-rpm-macros/-/merge_requests/4

Regards,
Tomáš Hrnčiar
_______________________________________________
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 on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to