<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 27/07/2010 13:37, Marius Gedminas wrote:
<blockquote cite="mid:20100727123720.GA3222@platonas" type="cite">
  <pre wrap="">On Tue, Jul 27, 2010 at 01:32:20PM +1000, Ben Finney wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">The trick then becomes management of the build script so that the
install step does *not* deploy the tests. Which requires thinking of
one's package as a package to be deployed, even though you're deploying
it in source form. From that point, it's a matter of learning about
Distutils and all the rest.
    </pre>
  </blockquote>
  <pre wrap="">
Other than wasting a bit of disk space, what are the downsides of
installing the tests?

For example, PyGame recently changed their distribution so the
tests get installed and can be run by any end-user with

  python -m pygame.tests.__main__

(I think it's just 'python -m pygame.tests' for Python 2.7 and 3.x)
  </pre>
</blockquote>
<br>
Yep, I'm in favour of deploying tests (as a sub-package). As you say,
the only cost is a few kilobytes of disk space and it can be very
helpful for end users to be able to run the tests and provide error
information.<br>
<br>
Where a project is a single module, so there is nowhere for a
sub-package to conveniently live, I tend to distribute the tests in the
package but not have them installed by setup.py.<br>
<br>
<br>
All the best,<br>
<br>
Michael<br>
<br>
<blockquote cite="mid:20100727123720.GA3222@platonas" type="cite">
  <pre wrap="">
Marius Gedminas
  </pre>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
testing-in-python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a>
<a class="moz-txt-link-freetext" href="http://lists.idyll.org/listinfo/testing-in-python">http://lists.idyll.org/listinfo/testing-in-python</a>
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.ironpythoninaction.com/">http://www.ironpythoninaction.com/</a>
<a class="moz-txt-link-freetext" href="http://www.voidspace.org.uk/blog">http://www.voidspace.org.uk/blog</a>

READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (&#8221;BOGUS AGREEMENTS&#8221;) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.

</pre>
</body>
</html>