On 2020-04-27 17:59, Neal Gompa wrote:
On Mon, Apr 27, 2020 at 11:58 AM Nicolas Mailhot
<nicolas.mailhot(a)laposte.net> wrote:
>
> Le lundi 27 avril 2020 à 11:34 +0200, Miro Hrončok a écrit :
>> Hello Python packagers,
>>
>> Usage:
>>
>> %check
>> %pytest
>>
>> Or with options passed to pyets:
>>
>> %check
>> %pytest -v -m "not network" tests/
>
> I ended up renaming similar macros as %foocheck (after several false
> starts).
>
> Having a domain-specific macro named slightly differently than the rpm
> section it is supposed to occur in was tripping packagers all the time.
>
The problem in Python land is that there are multiple different
options for tests, even with setuptools or whatnot. So some knowledge
of the tool is required, since there is no standardized interface
anymore (setup.py test is going away).
Right. The other big one is %tox, which is arguably nicer for Fedora: it
allows easily disabling linters or generating BuildRequires.