[Distutils] Testing modules from PyPI
cool-RR
cool-rr at cool-rr.com
Mon Feb 14 13:51:54 CET 2011
On Sun, Feb 13, 2011 at 10:21 PM, Tres Seaver <tseaver at palladion.com> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20110214/d696104d/attachment.html>
More information about the Distutils-SIG
mailing list