[TIP] tox config format

Benji York benji at benjiyork.com
Fri Jan 7 10:21:03 PST 2011


On Fri, Jan 7, 2011 at 1:08 PM, Kumar McMillan <kumar.mcmillan at gmail.com> wrote:
> On Fri, Jan 7, 2011 at 8:47 AM, holger krekel <holger at merlinux.eu> wrote:
>>    [testenv]
>>    commands = python setup.py test
>>    deps = django==1.2.3
>>
>>    [testenv:alpha1]
>>    deps = http://www.djangoproject.com/download/1.3-alpha-1/tarball/
>
> +1
> I like this a lot!

Buildout uses some small but useful extensions to standard ini file
syntax that helps in complex configurations: simple macros
(http://pypi.python.org/pypi/zc.buildout#extending-sections-macros) and
a way to add and remove options to list-like values
(http://pypi.python.org/pypi/zc.buildout#adding-and-removing-options).

It would be nice if those two little features were extracted into a
small library that others could use.
-- 
Benji York



More information about the testing-in-python mailing list