On Sun, Feb 13, 2011 at 10:21 PM, Tres Seaver <[email protected]> wrote:
> -----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. Thanks for the suggestion. I do find it to be a bit lengthy. Eventually I went with installing the `test_garlicsim` package along with `garlicsim`, and installing a `_test_garlicsim` script on the user's computer which invokes Nose with the `test_garlicsim` package. Ram.
_______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
