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

Donald Stufft donald at stufft.io
Wed Oct 7 14:18:25 CEST 2015

On October 7, 2015 at 7:58:55 AM, Ionel Cristian Mărieș (contact at ionelmc.ro) wrote:
> On Wed, Oct 7, 2015 at 8:12 AM, Thomas Güttler > > wrote:
> > Why not use `setup.py test`?
> >
> Because:
> 1. There's Tox​, which does exactly that, and more. It's maintained. It
> gets features.

tox and setup.py test are not really equivalent. There’s no way (to my knowledge) to test the item outside of a virtual environment. This is important for downstreams who want to test that the package build and the tests successfully are executed in their environment, not within some virtual environment.

Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA

More information about the Distutils-SIG mailing list