Environment variable

I have a file tox.ini:

[tox]
envlist =
    {py27,py34}

[testenv]
setenv =
    PYTHONDONTWRITEBYTECODE=1
deps =
    -r{toxinidir}/requirements-test.txt
commands =
    nosetests -v --stop --with-coverage --cover-package=project

So, I need to pass my env env environment variable from my SO. This variable is private and varies depending on the environment.

How am i doing this?

+4
source share
1 answer

I have found a solution! Tox 2.0 has passenv settings

, . , . * ? . , PATH PIP_INDEX_URL , Windows SYSTEMROOT, PATHEXT, TEMP TMP , unix TMPDIR . setenv.

+2

All Articles