[Distutils] buildout, zc.recipe.testrunner and tests_require

Phillip J. Eby pje at telecommunity.com
Thu Nov 15 17:47:25 CET 2007

At 11:35 AM 11/15/2007 -0500, Tres Seaver wrote:
>Hash: SHA1
>Jim Fulton wrote:
> > On Mar 11, 2007, at 11:08 AM, Nathan R. Yergler wrote:
> > ...
> >> I tried using zc.recipe.testbrowser, thinking that maybe it'd look at
> >> the tests_require for the target eggs, but no such luck.
> >
> > The tests_require option is only visible to the setup script.  It
> > doesn't cause any data to be included in egg info.  It is an
> > attractive nuisance IMO.
>I hope the attached patch (against the head of the setuptools 0.6
>branch) makes it less of a nuisance.  The patch adds an egg-info file
>entry point which writes the 'tests_require' value to a fill in the
>.egg-info directory.

Interesting, and worth considering.  Meanwhile, note that you can 
also distribute this as a plugin, or register the entry point in 
zc.buildout.  That is, you don't need this to be a patch in order to 
get the same behavior in a given Python installation.

More information about the Distutils-SIG mailing list