tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: python wheel test norms



On Tue, Apr 08, 2025 at 12:25:00PM -0400, Greg Troxel wrote:
> In net/py-magic-wormhole, upstream documents tox for tests but does not
> mention py-test.
> 
> wheel.mk has USE_PYTEST defaulting to yes, which TEST_DEPENDS on py-test
> and creates a do-test target to run it.
> 
> Is it such a strong convention in python that of course py-test is needed and
> is the standard entry point to run tests, that it's not a bug for an
> upstream to omit mentioning it?
> 
> Exactly one package has USE_PYTEST=no (because there are no tests).
> 
> Or, is it otherwise?

I don't know if this is documented behaviour, but in my experience,
it's de-facto behaviour that running pytest runs the test suite.

I wasn't aware of USE_PYTEST=no - there are quite a number of packages
that don't distribute their test suite inside the pypi distfiles (that
we use in pkgsrc), for size and for other reasons. Sometimes filing a
bug report upstream makes them reconsider, sometimes not; I usually
don't file any about this any longer.
 Thomas


Home | Main Index | Thread Index | Old Index