[TIP] [tox] Generative Environment Question

holger krekel holger at merlinux.eu
Mon Nov 3 09:19:38 PST 2014


On Sat, Nov 01, 2014 at 21:31 +0000, Alex Gaynor wrote:
> I think the right way to do this would be to delete the 26, 27, and pypy
> sections and add to the main [testenv] deps section:
> 
>    py26: unittest2
>    py27: unittest2
>    pypy: unittest2

which is equivalent to:

    py26,py27,pypy: unittest2

(the ',' is an OR operation).

holger

> There might be some way to combine those further, but it's a start.
> 
> Alex
> 
> On Sat Nov 01 2014 at 2:28:55 PM Ian Cordasco <graffatcolmingov at gmail.com>
> wrote:
> 
> > Hey all,
> >
> > Currently I'm taking advantage of the generative features in tox 1.8
> > (https://github.com/sigmavirus24/github3.py/blob/1.0-alpha/tox.ini)
> > but I'm wondering if my file can be simplified even further with
> > something like
> >
> > [testenv:py{26,27,py}]
> >
> > Instead of three different sections for py26, py27, and pypy.
> >
> > Am I correct that this isn't currently a feature? (In my quick tests
> > it didn't seem to work)
> >
> > Cheers,
> > Ian
> >
> > _______________________________________________
> > testing-in-python mailing list
> > testing-in-python at lists.idyll.org
> > http://lists.idyll.org/listinfo/testing-in-python
> >

> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python




More information about the testing-in-python mailing list