[Distutils] Testing modules from PyPI

Tres Seaver tseaver at palladion.com
Mon Feb 14 04:21:19 CET 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/12/2011 08:19 AM, cool-RR wrote:

> What would be a good workflow to do post-release testing of my PyPI
> packages? That is, I make a new release on PyPI, and I want to install it on
> a VM and run the tests on the installed version. What would be a good way to
> do it?

I use virtualenv, something like this::

 $ export WHERE=/tmp/test-yourpackage
 $ /path/to/python/bin/virtualenv --no-site-packages $WHERE
 $ $WHERE/bin/easy_install nose coverage
 $ $WHERE/easy_install --always-unzip yourpackage
 $ export TARGET=$WHERE/lib/python2.x/site-packages
 $ $WHERE/bin/nosetests  --where=$TARGET/yourpackage-x.y-python2.x.egg


Tres.
- -- 
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1Yn68ACgkQ+gerLs4ltQ6iVQCg0SxbRTQMUMRJA9frxpZqqa6i
IWsAn0NyCeQDQs4sGupc/M7OKL6OeIzr
=kA8g
-----END PGP SIGNATURE-----



More information about the Distutils-SIG mailing list