Allow commas as argument separator for extras names in %python_extras_subpkg

This allows e.g.:

    %global extras cli,ghostwriter,pytz,dateutil,lark,numpy,pandas,pytest,redis,zoneinfo,django
    %{pyproject_extras_subpkg -n python3-hypothesis %{extras}}
    ...
    %pyproject_buildrequires -x %{extras}

(Note that %pyproject_extras_subpkg is a tiny wrapper around %python_extras_subpkg.)
This commit is contained in:
Miro Hrončok 2021-03-29 14:49:20 +02:00
commit a44ae31ad0
3 changed files with 47 additions and 2 deletions

View file

@ -22,7 +22,7 @@ License: MIT and Python
# The macro is defined in python-srpm-macros.
%{load:%{SOURCE102}}
Version: %{__default_python3_version}
Release: 35%{?dist}
Release: 36%{?dist}
BuildArch: noarch
@ -95,6 +95,10 @@ install -m 644 compileall2.py %{buildroot}%{_rpmconfigdir}/redhat/
%changelog
* Mon Mar 29 2021 Miro Hrončok <mhroncok@redhat.com> - 3.9-36
- Allow commas as argument separator for extras names in %%python_extras_subpkg
- Fixes: rhbz#1936486
* Sat Feb 20 2021 Miro Hrončok <mhroncok@redhat.com> - 3.9-35
- Fix %%python_extras_subpkg with underscores in extras names