[TIP] How do you test your setup.py?

David Stanek dstanek at dstanek.com
Thu Jul 16 15:04:53 PDT 2009


I normally easy_install my distributions into a clean virtualenv and
run unit tests. If everything passes I'll upload to the cheeseshop or
deploy internally at work.

On 7/16/09, Marius Gedminas <marius at gedmin.as> wrote:
> I'm not sure if this topic is better raised here or on the distutils
> mailing list.  I'll try here first.
>
> How do you test your source distributions?  How do you make sure the
> tarball created by 'python setup.py sdist' is complete and correct?
>
> My attempt at this is the following scary Makefile:
> http://bazaar.launchpad.net/~mgedmin/zodbbrowser/trunk/annotate/head%3A/Makefile
>
> It builds the source distribution, unpacks it in a temporary directory
> and tries to build the source distribution again, then compares the two
> tarballs.
>
> Marius Gedminas
> --
> If you are angry with someone, you should walk a mile in their shoes... then
> you'll be a mile away from them, and you'll have their shoes.
>

-- 
Sent from my mobile device

David
blog: http://www.traceback.org
twitter: http://twitter.com/dstanek



More information about the testing-in-python mailing list