On 7/7/22 04:38, Miro Hrončok wrote:
Should I do this in a mass change? Not so many packages use pytest -n auto in the spec:
$ rg -l -- '(-n|--numprocesses)(\s*|=)auto(\s|$)' azure-cli.spec
As the azure-cli maintainer, I'm okay with that change.
(Other packages have that in tox.ini or pytest config file, but I am not aiming at changing that here.)
And, considering many other packages might want to benefit from that, should this be:
1) encouraged in the Python packaging guidelines
Of course! I always forget the "%{_smp_build_ncpus}" macro and end up digging through macros to find how to spell it.
2) macronized (I was thinking %pytest_parallel, but TBD)
That's a good idea, but I don't know how much use it would get. 🤷🏻♂️