[PATCH 01 of 24 yams V2] [tox] enforce usage of python3 for tests

Laurent Peuch cortex at worlddomination.be
Wed Mar 4 16:08:22 CET 2020


On Wed, Mar 04, 2020 at 03:48:49PM +0100, Nicola Spanti wrote:
> Hi.
> 
> https://tox.readthedocs.io/en/latest/config.html#conf-basepython
> Is it useful? If yes, why? The only environment is py3, so python3 will
> already be used without this change if I understand well the documentation.

Ah, probably? We've more or less adapted another tox file code to move
on (it was a mob programming session.)

> Le 04/03/2020 à 15:17, Laurent Peuch a écrit :
> ># HG changeset patch
> ># User Laurent Peuch <cortex at worlddomination.be>
> ># Date 1580338562 -3600
> >#      Wed Jan 29 23:56:02 2020 +0100
> ># Node ID 4a3921f215e07cbc3561ab87354462a1a7413b8a
> ># Parent  c4de9c9ce27c47505bdf144a46e108dae5a2f8fa
> ># Available At https://hg.logilab.org/users/lpeuch/yams
> >#              hg pull https://hg.logilab.org/users/lpeuch/yams -r 4a3921f215e0
> ># EXP-Topic type_annotations
> >[tox] enforce usage of python3 for tests
> >
> >diff --git a/tox.ini b/tox.ini
> >--- a/tox.ini
> >+++ b/tox.ini
> >@@ -2,6 +2,7 @@
> >  envlist=py3,check-manifest,flake8
> >  [testenv]
> >+basepython=python3
> >  deps =
> >    pytest
> >  commands={envpython} -m pytest {posargs:{toxinidir}/test}
> >

-- 

Laurent Peuch -- Bram



More information about the cubicweb-devel mailing list