<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Oct 9, 2015 at 10:44 AM, Thomas Güttler <span dir="ltr"><<a href="mailto:guettliml@thomas-guettler.de" target="_blank">guettliml@thomas-guettler.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The question remains: If a new comer asks you "How to package my<br>
python code and its tests?", there should be one default answer<br>
which works for 80% of all cases.<br></blockquote><div><br></div><div>Should be, maybe -- but clearly there is no consensus as to what the "one" answer shoudl be.</div><div><br></div><div>But I _think_ there are two answers:</div><div><br></div><div>1) inside the package, so it can be installed and the tests run on the installed version.</div><div><br></div><div>2) outside the package, so that potentially large or complex test requirements are not required for installation.</div><div><br></div><div>So the intro docs can lay out those two options, with a bit of text that helps a newbie make a decision.</div><div><br></div><div>from above, -- I think that EITHER option would work fine for 80% of cases.</div><div><br></div><div>which makes me think -- why not pick one as the default while clearly documenting the other.</div><div><br></div><div>And despite the fact that I have always used option (2) in my work, I think, if there is going to be one in the simple example, it should be (1) -- it's a fine way to get started, and users can move their tests outside of the package later if they start getting big. As a package grows to that extent, it will likely need other structural changes anyway.</div><div><br></div><div>-Chris</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I think the confusion gets worse by creating new public accessible<br>
repos which explain "Hey that's my way to package stupid simple<br>
python code".<br>
<br>
Regards,<br>
  Thomas Güttler<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
<br>
<br>
--<br>
<a href="http://www.thomas-guettler.de/" rel="noreferrer" target="_blank">http://www.thomas-guettler.de/</a><br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Distutils-SIG maillist  -  <a href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/distutils-sig" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/distutils-sig</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R            (206) 526-6959   voice<br>7600 Sand Point Way NE   (206) 526-6329   fax<br>Seattle, WA  98115       (206) 526-6317   main reception<br><br><a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a></div>
</div></div>