Hello Pythonistas.
We have released a new version of pyproject-rpm-macros 1.6.2.
The last announcement on this list was for 1.4.0, so let me summarize what's
new since then:
The 1.5.x versions are not very significant. 1.5.0+ now uses the
%py3_test_envvars macro (available on Fedora 38+) in %tox. This is mostly an
internal change, but it has subtle differences for packages using %tox. The
noticeable difference is that CFLAGS/LDFLAGS are now set to
${RPM_OPT_FLAGS}/${RPM_LD_FLAGS}, so if the tests run gcc etc. in them they use
the RPM build flags.
1.5.1 adjusted tests for tox 4+, which is also available in Fedora 38+.
------------------------------------------------------------------------------
Version 1.6.0 introduced a new pyproject-srpm-macros subpackage (installed in
the default buildroot) with a minimal implementation of the
%pyproject_buildrequires macro.
Packages using %pyproject_buildrequires now technically don't need to manually
BuildRequire neither pyproject-rpm-macros nor python3-devel.
With that change, the python3-devel package in ELN/RHEL10+ no longer requires
pyproject-rpm-macros. ELN packages that use pyproject-rpm-macros and don't use
%pyproject_buildrequires might need to be adjusted. As always, I note that
using pyproject-rpm-macros without %pyproject_buildrequires works fine but has
no backwards compatibility guarantees -- packagers who prefer to list all
BuildRequires manually might need to adjust the list even on "minor"
pyproject-rpm-macros updates.
This change was mostly motivated by the need to avoid pulling
pyproject-rpm-macros into the AppStream RHEL10+ repository and is not impacting
Fedora builds in any negative way. The python3-devel package in Fedora still
requires pyproject-rpm-macros.
------------------------------------------------------------------------------
Version 1.6.1 fixed a subtle bug in %pyproject_buildrequires. When the build
backend (mostly a setup.py scrip) was shelling out to subprocesses its stdout
was falsely part of the generated BuildRequires. This is now fixed.
See
http://bugzilla.redhat.com/2166888 for details.
------------------------------------------------------------------------------
Version 1.6.2 now considers more paths as language files.
Previously, only files like .../locale/xx/LC_MESSAGES/*.mo were marked as
%lang(xx). Currently the /locale/ part no longer needs to be there.
We decided to treat this as a bugfix.
See
https://bugzilla.redhat.com/2166295 for details.
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok