[Distutils] Where should I put tests when packaging python modules?

Antoine Pitrou solipsis at pitrou.net
Wed Oct 7 00:55:22 CEST 2015

On Wed, 7 Oct 2015 01:44:34 +0300
Ionel Cristian Mărieș <contact at ionelmc.ro> wrote:
> That leaves me with 22 packages that need test tools like pytest/nose and
> assorted plugins.
> ​It's double the trouble to find compatible releases.

Hmm, are you saying py.test / nose and assorted plugins break APIs
often?  I would be a bit surprised, but I don't use them nowadays.
Modern unittest is quite capable.

> > And just because you are not used to a "workflow" doesn't make it
> > "weird" in any case.  Python itself uses such a workflow ("python -m
> > test").
> ​It's weird in the sense that you have to do all these gymnastics to get
> the test dependencies right​

Well, "getting the dependencies right" must be done, whether you run
the tests from their installed location or from the source tree.  In
both cases, you can probably get the package management system to
automate package downloads and installs.



More information about the Distutils-SIG mailing list