Hello,

> recently, we were suggested an improvement for %pyproject_buildrequires
> -r/-x.
> We could read the project's runtime dependencies (if they're not marked
> as `dynamic`) from pyproject.toml [project] table directly, without
> calling prepare_metadata_for_build_wheel or building the wheel to read
> the dependency metadata from it.

We implemented the change in pyproject-rpm-macros-1.15.0-1:

F39: https://bodhi.fedoraproject.org/updates/FEDORA-2024-97e69afef1
F40: https://bodhi.fedoraproject.org/updates/FEDORA-2024-f17e2f559b
F41: https://bodhi.fedoraproject.org/updates/FEDORA-2024-aa49f791e5

When invoking `%pyproject_buildrequires -p` the dependencies will be read from the pyproject.toml [project] table and in case pyproject.toml doesn't exist, the [project] table doesn't exist, or the metadata are defined as dynamic, the macro will fail. There is no fallback mechanism implemented. You can combine the `-p` flag with extra flags (`-x`). It is mutually exclusive with `-w`, `-R` and `-N`.

Cheers,
Karolina

--
_______________________________________________
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

Reply via email to