Proposal: Make tests run using virtualenv, add runtests_virtualenv.sh

Visto 27 veces
Saltar al primer mensaje no leído

Øyvind Saltvik

no leída,
1 feb 2011, 14:34:511/2/11
a django-cms...@googlegroups.com
When using buildout ad running tests against both django trunk and the current stable when developing buildout has to rebuild the env each time you switch inbetween.

Using virtualenv this is easily solved by having two virtual environments to swap invetween.

So I propose adding a runtests_virtualenv.sh or moving the test running to use virtualenv alltogether.

Alternatively make buildout build two environments aswell.

Jonas Obrist

no leída,
1 feb 2011, 15:18:101/2/11
a django-cms...@googlegroups.com
I'm -0.5 on this.

Simply because I'm not a huge fan of virtualenv, I just personally believe that buildout is better. However I see the point in this, so should this have the support of the community, I'm okay with it.

Jonas

yml

no leída,
2 feb 2011, 3:48:192/2/11
a django-cms...@googlegroups.com
I think that this might be prone to flame war buildout vs pip+virtualenv. My personal feeling is that the later (pip+virtualenv) win the battle in the python community.
+1 for having an option to use virtualenv.

--yml

Kevin Renskers

no leída,
2 feb 2011, 3:54:472/2/11
a django-cms...@googlegroups.com
pip + virtualenv have my vote too: +1.

Jannis Leidel

no leída,
2 feb 2011, 5:01:282/2/11
a django-cms...@googlegroups.com
On 02.02.2011, at 09:48, yml wrote:

> I think that this might be prone to flame war buildout vs pip+virtualenv. My personal feeling is that the later (pip+virtualenv) win the battle in the python community.
> +1 for having an option to use virtualenv.

I'd like to make a slightly different proposal, let's use tox.

http://codespeak.net/tox/

It's a great tool since it allows us to test in various environments and uses virtualenv/pip internally and integrates nicely with Hudson, err Jenkins.

A simple example would be https://github.com/jezdez/django-staticfiles/blob/master/tox.ini which tests staticfiles on Django 1.1.X, 1.2.X and 1.3.X (beta) and Python 2.5, 2.6 and 2.7.

Jannis

Øyvind Saltvik

no leída,
2 feb 2011, 5:17:102/2/11
a django-cms-developers
Ooo, nice.

+1

On 2 Feb, 11:01, Jannis Leidel <lei...@gmail.com> wrote:
> On 02.02.2011, at 09:48, yml wrote:
>
> > I think that this might be prone to flame war buildout vs pip+virtualenv. My personal feeling is that the later (pip+virtualenv) win the battle in the python community.
> > +1 for having an option to use virtualenv.
>
> I'd like to make a slightly different proposal, let's use tox.
>
>    http://codespeak.net/tox/
>
> It's a great tool since it allows us to test in various environments and uses virtualenv/pip internally and integrates nicely with Hudson, err Jenkins.
>
> A simple example would behttps://github.com/jezdez/django-staticfiles/blob/master/tox.iniwhich tests staticfiles on Django 1.1.X, 1.2.X and 1.3.X (beta) and Python 2.5, 2.6 and 2.7.
>
> Jannis

Tribaal

no leída,
2 feb 2011, 7:13:042/2/11
a django-cms...@googlegroups.com
Tox was designed to handle precisely our use case.

Clearly, +1

2011/2/2 Øyvind Saltvik <oyvind....@gmail.com>:

Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos