找到你要的答案

Q:tox envlist using any python3 interpreter, exactly once

Q:弓形虫envlist使用Python3解释器,恰好一次

In my tox.ini file I have

[tox]
envlist = py27,py33,py34
skip_missing_interpreters = True

but I'm really trying to test against one python3 and not really interested in minor python3 versions. I'm just trying to support environments in which python-3.3 is installed but not python-3.4 and vice versa. This is not convenient because

  • the list of intepreters will grow indefinitely
  • when multiple interpreters are availables (my laptop has both 3.3 and 3.4) the tests are run multiple times and that takes time

Ideally there would be a way to write:

[tox]
envlist = py27,py3

in order to select whatever python3 version is installed. I don't think this is possible but maybe there is a workaround ?

在我的tox.ini文件我

[tox]
envlist = py27,py33,py34
skip_missing_interpreters = True

但我真的想对Python3试验和小Python3版本真的不感兴趣。我只是想支持的环境中,python-3.3安装但不python-3.4反之亦然。这不方便,因为

  • the list of intepreters will grow indefinitely
  • when multiple interpreters are availables (my laptop has both 3.3 and 3.4) the tests are run multiple times and that takes time

理想的情况下,将有一种方法来写:

[tox]
envlist = py27,py3

为了选择什么Python3版本安装。我认为这是不可能的但也许有一种方法?

python  tox