pyproject-rpm-macros-0-37: One less %generate_buildrequires round
by Miro Hrončok
Hello Pythonistas,
We have just released pyproject-rpm-macros-0-37. It is available in Koji for all
Fedora versions. The primary new thing is optimized %pyproject_buildrequires:
The new version will save one round of installing BuildRequires.
Previously, the macro generated BuildRequires in waves like this:
Projects with pyproject.toml:
1. (python +) pip + packaging
2. [pyproject.toml detected by Python script] toml
3. parsed dependencies from pyproject.toml
4. ...
Projects without pyproject.toml:
1. (python +) pip + packaging
2. [missing pyproject.toml detected by Python script] setuptools + wheel
3. ...
Now, we check if pyproject.toml is present as soon as possible directly from
Shell, so the rounds were reduced to:
1. (python +) pip + packaging + [ -f pyproject.toml ] toml
2. parsed dependencies from pyproject.toml
3. ...
Or:
1. (python +) pip + packaging + [ ! -f pyproject.toml ] setuptools + wheel
2. ...
This saves one round of `dnf builddep` in either case. One round that could take
minutes with --enablerepo=local.
The change should be 100% backwards compatible unless you enjoyed the extra
round to read your emails https://xkcd.com/1172/
Enjoy and report problems as usual.
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
3 years, 2 months