[TIP] Testing a binary distribution with Tox

Robert Collins robertc at robertcollins.net
Thu Jun 18 17:39:40 PDT 2015


On 19 June 2015 at 11:31, André Caron <andre.l.caron at gmail.com> wrote:
> Hi all,
>
> I'm using Tox, which installs the package in the test environments using
> sdist (unless running with --develop option).  This is very nice, but it's
> happened that I end up with deployment errors with binary distributions.
>
> I've been wondering how to automate the testing of my package's binary
> distribtion to make sure it gives the same result as the source distribution
> -- at the very least on the host system -- without actually running the
> package through PyPI.
>
> What are your recipes for doing this?

In tox.ini

usedevelop = False

will change this to doing setup.py install rather than develop. That
should be enough to flush out many more issues.

-Rob
-- 
Robert Collins <rbtcollins at hp.com>
Distinguished Technologist
HP Converged Cloud



More information about the testing-in-python mailing list