pyproject-rpm-macros can now install Python BuildRequires from requirements files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:
    

Backport for CentOS Stream 9 can be found here:

Regards,
Tomáš Hrnčiar
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux