Bug 2360766 - RFE: Validate extra names passed to %pyproject_buildrequires -x
Summary: RFE: Validate extra names passed to %pyproject_buildrequires -x
Keywords:
Status: POST
Alias: None
Product: Fedora
Classification: Fedora
Component: pyproject-rpm-macros
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomáš Hrnčiar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-17 17:47 UTC by Miro Hrončok
Modified: 2025-07-30 12:07 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2025-04-17 17:47:38 UTC
Currently, the extra names are passed to packaging.requirements.Requirement.marker.evaluate as given to %pyproject_buildrequires -x.

As a result, nonexisiting extras don't cause any errors/warnings.

We should parse the available extras from package METADATA/[project] and issue warnings (perhaps errors later) for nonexisting extras.

When we know all the available extras, we could even treat -x arguments as globs (and allow -x '*' etc.).


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