<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 7, 2015 at 6:13 PM, Erik Bray <span dir="ltr"><<a href="mailto:erik.m.bray@gmail.com" target="_blank">erik.m.bray@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">> Lets not use `setup.py test`. It's either bad or useless.<br>
<br>
</span>Says who?  Many of the projects I'm involved in use `setup.py test`<br>
exclusively and for good reason--they all have C and/or Cython<br>
extension modules that need to be built for the tests to even run.<br>
Only setup.py knows about those extension modules and how to find and<br>
build them.  Using `setup.py test` ensures that everything required to<br>
run the package (including runtime dependencies) is built and ready,</blockquote></div><br><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">​Well ok, then it's not useless. :-)<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">For pure Python packages I think it's less important and can usually<br>
rely on "just run 'nose', or 'py.test'"  (or "tox" but that's true<br>
regardless of how the tests are invoked outside of tox).<br></blockquote><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br>That implies you would be testing code that you didn't install. That allows preventable mistakes, like publishing releases on PyPI that don't actually work, or do not even install at all (because you didn't test that). `setup.py test` doesn't really allow you to fully test that part, but Tox does.<br></div></div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div><span style="font-family:trebuchet ms,sans-serif"><span style="color:rgb(51,51,51)"><br><font size="2"><span style="color:rgb(51,51,51)">Thanks,</span><br><span style="color:rgb(153,153,153)">-- Ionel</span></font></span><font size="2"><font style="color:rgb(153,153,153)"> Cristian Mărieș, <a href="http://blog.ionelmc.ro" target="_blank">http://blog.ionelmc.ro</a><br></font></font></span></div></div></div></div></div></div></div>
</div></div>