[TIP] tox and setup.py

Michael Foord michael at voidspace.org.uk
Fri Jun 24 05:01:35 PDT 2011


On 24/06/2011 03:58, Jorge Cardona wrote:
> Hi,
>
> I have set a tox.ini with a setup.py which describe a python package
> and I tested it with tox, the first step is to create a sdist in zip
> format of the package, but I need to change the version to refresh the
> zip every time I want to test the code, there is a way to test it
> without change the package version every time?
>

By default tox will recreate the sdist, for the main package under test, 
every time. Are you sure this isn't happening, or is this particular 
setup.py for a dependency rather than the main package?

(I use tox for mock and run tests in between minor edits without bumping 
the version number. It builds a fresh sdist and installs it into the 
virtualenvironments every time.)

All the best,

Michael

> Thanks.
>


-- 
http://www.voidspace.org.uk/

May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing http://www.sqlite.org/different.html




More information about the testing-in-python mailing list