[Zope-dev] Circular dependency hell.

Wichert Akkerman wichert at wiggy.net
Sun Apr 18 05:29:24 EDT 2010


On 4/18/10 10:37 , Christophe Combelles wrote:
> Tres Seaver a écrit :
>>> So far the main circularity was that everything depended on
>>> zope.testing as a testrunner, zc.buildout for making the development
>>> environment, and zope.testing obviously depended on zope.interface
>>> etc. I solved that by also adding support for setuptools/distributes
>>> testrunner and using that instead. That fixed zope.interface,
>>> zope.event and zope.exception. These modules still have buildout
>>> configurations if you want them, but you don't need buildout anymore.
>>> zope.interface, zope.event and zope.exception can now be developed and
>>> tested with only setuptools, you can run the tests with "python
>>> setup.py test" both under Python 2 and 3.
>>
>> Yay!  That is a big win -- I'd like to see us automate testing this way,
>> so that future development doesn't erode it.  Developing ZTK packages
>> using buildout should be a convenience, not a mandate.
>
> Depending on setuptools for tests in another evil thing. We should not assume a
> *setup* tool to be a testrunner, and we should not depend on the behaviour of
> setuptools to write tests.

All zope.* packages already depend on setuptools to setup the namespace, 
so I don't see a problem with using setuptools to run tests. The 
dependency is already there.

Wichert.


More information about the Zope-Dev mailing list