Bug 2360766

Summary: RFE: Validate extra names passed to %pyproject_buildrequires -x
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: pyproject-rpm-macrosAssignee: Tomáš Hrnčiar <thrnciar>
Status: POST --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: code, maxwell, mhroncok, python-packagers-sig, thrnciar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.).