Currently, if a package has many extras, I need to do: %{pyproject_extras_subpkg cli ghostwriter pytz dateutil lark numpy pandas pytest redis zoneinfo django -n python3-hypothesis} ... %generate_buildrequires %pyproject_buildrequires -x cli,ghostwriter,pytz,dateutil,lark,numpy,pandas,pytest,redis,zoneinfo,django This is tedious. I want to be able to do: %pyproject_buildrequires -x %{pyproject_extras_list}
This is a workaround I've managed to use in hypothesis: %global extras cli ghostwriter pytz dateutil lark numpy pandas pytest redis zoneinfo django %{pyproject_extras_subpkg -n python3-hypothesis %{extras}} ... %pyproject_buildrequires -x %(echo %{extras} | tr ' ' ',') At the very least, we should allow passing a space-separated value to -x, to avoid the shell/tr workaround: %pyproject_buildrequires -x "%{extras}" Or, allow passing comma separated values to %pyproject_extras_subpkg: %global extras cli,ghostwriter,pytz,dateutil,lark,numpy,pandas,pytest,redis,zoneinfo,django %{pyproject_extras_subpkg -n python3-hypothesis %{extras}} ... %pyproject_buildrequires -x %{extras}
(In reply to Miro Hrončok from comment #1) > Or, allow passing comma separated values to %pyproject_extras_subpkg: > > %global extras > cli,ghostwriter,pytz,dateutil,lark,numpy,pandas,pytest,redis,zoneinfo,django > %{pyproject_extras_subpkg -n python3-hypothesis %{extras}} > ... > %pyproject_buildrequires -x %{extras} I've decided to solve the problem via this. Let's avoid remember-this-argument magic, across various macros defined in different components.
https://src.fedoraproject.org/rpms/python-rpm-macros/pull-request/93
FEDORA-2021-ec43c0e257 has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2021-e637ec13ac has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-e637ec13ac
FEDORA-2021-62b08b52ef has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-62b08b52ef
FEDORA-2021-62b08b52ef has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-62b08b52ef` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-62b08b52ef See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-e637ec13ac has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-e637ec13ac` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-e637ec13ac See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-62b08b52ef has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2021-e637ec13ac has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report.