[Distutils] tests_require and test_suite in egg-info

Phillip J. Eby pje at telecommunity.com
Thu Jan 4 22:37:22 CET 2007


At 04:14 PM 1/4/2007 -0500, Jim Fulton wrote:

>It appears that the values of the tests_require and test_suite
>keyword arguments isn't captured in egg-info.  Am I missing
>something?  Why would this information be omitted?

Because the only existing tool that uses that information (the test 
command) can't be run without the setup.py, which isn't installed with the egg.

In any case, many projects treat tests as development tools only, rather 
than installing them with the project's main code.


>   I would like to
>use it when generating test runners in zc.buildout.

Well, you could add an egg_info plugin writer to do it, or you could add a 
custom setuptools command like "create_test_runners" and run setup.py on 
it.  There are probably also other ways I haven't thought of.  :)



More information about the Distutils-SIG mailing list