Bug 2324092 - RFE: %pyproject_buildrequires: add support for PEP 735 – Dependency Groups
Summary: RFE: %pyproject_buildrequires: add support for PEP 735 – Dependency Groups
Keywords:
Status: CLOSED DUPLICATE of bug 2318849
Alias: None
Product: Fedora
Classification: Fedora
Component: pyproject-rpm-macros
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-06 00:06 UTC by Maxwell G
Modified: 2024-11-06 11:35 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-11-06 11:35:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Maxwell G 2024-11-06 00:06:53 UTC
Description of problem:

It would be nice if the pyproject macros supported PEP 735 dependency groups. This could be done by adding a new -g flag to the macro (that can be repeated like -x) that accepts a group name. I have linked the PEP specification and the canonical library for resolving dependency groups (dependency-groups can reference other dependency groups) in Additional info.

Steps to Reproduce:

See https://peps.python.org/pep-0735/#example-dependency-groups-table.

1. %pyproject_buildrequires -g typing-test


Expected results:
python3dist(mypy)
python3dist(types-requests)
python3dist(pytest)
python3dist(coverage)
python3dist(useful-types)

Additional info:

https://peps.python.org/pep-0735
https://github.com/sirosen/dependency-groups

Comment 1 Miro Hrončok 2024-11-06 11:35:13 UTC
Yeah, this is already ready as a PR. https://src.fedoraproject.org/rpms/pyproject-rpm-macros/pull-request/486

*** This bug has been marked as a duplicate of bug 2318849 ***


Note You need to log in before you can comment on or make changes to this bug.