[Zope-dev] buildout "tests_require" analogue

Stephan Richter srichter at cosmos.phy.tufts.edu
Wed Nov 14 21:06:10 EST 2007


On Wednesday 14 November 2007, Chris McDonough wrote:
> That's actually a no-good pack of lies, though. ;-)  I'd like to  
> change setup.py to something like this:
>
>      test_suite = "__main__.alltests", # to support "setup.py test"
>      tests_require=[
>               'zope.testing',
>               'pytz',
>               'zope.component [zcml]',
>               'zope.configuration',
>               ],
>      install_requires=[
>               'setuptools',
>               'pytz',
>               'zope.i18nmessageid',
>               'zope.component',
>               # *we* do not require zope.configuration at all. Our tests
>               # do (for silly reasons) and the framework which uses  
> our zcml
>               # does.
>               ],
>
> But I want buildout tests to continue to work.  I suspect the rest of  
> this discussion is going to hurt. ;-)

Right now we are using extra_requires that has the "test" key, which we 
specify for the test runner. We have discussed using tests_require before, 
but this would need some new software in buildout. I would *love* to see this 
implemented.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope-Dev mailing list