Hello Pythonistats,
we have been busy at pyproject-rpm-macros, so here's a third enhancement
release in 2 weeks. pyproject-rpm-macros 1.22.0 and it brings in one major and
one minor improvement:
Add long option support for all public parametric macros
========================================================
Now you can use self-explanatory long options:
%pyproject_buildrequires --no-runtime
%pyproject_save_files --assert-license ...
Instead of cryptic short options:
%pyproject_buildrequires -R
%pyproject_save_files -l ...
See the full option set in the README
https://src.fedoraproject.org/rpms/pyproject-rpm-macros/blob/rawhide/f/READ…
Section "Long option support and options reference"
This was previously discussed in
https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproj…
I would like to explicitly thank Maxwell G for a very thorough review with many
great remarks and suggestions.
PS, this also mean %pyproject_save_files accepts --auto (as a more natural
alternative to +auto).
%pyproject_patch_dependency: Validate arguments early, in %prep
===============================================================
When python3 and pyproject-rpm-macros are installed,
the %pyproject_patch_dependency macro now validates the argument in %prep time,
catching invalid overrides immediately instead of in %pyproject_buildrequires.
When only pyproject-srpm-macros is installed, validation is skipped gracefully
(and the error will happen later in the build).
This should shorten the packager feedback loop when experimenting with
%pyproject_patch_dependency (from fedpkg mockbuild to fedpkg prep).
----------------------------------------------------------------------
Anyway, the new version of the package is available in Rawhide, and updates
testign for older Fedoras. Backports are planned for CentOS Stream 9+10 during
this RHEL y-stream release cycle.
When the dust settles, I plan to update
https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/ with the long
options.
Happy packaging,
--
Miro Hrončok
--
Phone: +420777974800