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

Tres Seaver tseaver at palladion.com
Thu Nov 15 17:35:21 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
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.

It would be trivial to add another which dumped the 'test_suite' info as
well:  perhaps a single ConfigParser-style file with two keys would have
more parsimony.



Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHPHVJ+gerLs4ltQ4RAlGHAJ4o4tJrYInQkWB0Xv6KB3oNhAscHQCg0Kjl
9XLihjJaaU6coaBo/dpwkvE=
=zSQH
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setuptools-add_tests_require_file.patch
Type: text/x-patch
Size: 2715 bytes
Desc: not available
Url : http://mail.python.org/pipermail/distutils-sig/attachments/20071115/fe0b1903/attachment-0001.bin 


More information about the Distutils-SIG mailing list