tox: Add PYTHON to passenv.
This commit is contained in:
parent
68d8900c6c
commit
67473c6db1
9
tox.ini
9
tox.ini
@ -7,6 +7,7 @@
|
|||||||
envlist = unittests,misc,pep257,pyflakes,pep8,mccabe,pylint,pyroma,check-manifest
|
envlist = unittests,misc,pep257,pyflakes,pep8,mccabe,pylint,pyroma,check-manifest
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
passenv = PYTHON
|
||||||
basepython = python3
|
basepython = python3
|
||||||
|
|
||||||
[testenv:mkvenv]
|
[testenv:mkvenv]
|
||||||
@ -17,7 +18,7 @@ usedevelop = true
|
|||||||
[testenv:unittests]
|
[testenv:unittests]
|
||||||
# https://bitbucket.org/hpk42/tox/issue/246/ - only needed for Windows though
|
# https://bitbucket.org/hpk42/tox/issue/246/ - only needed for Windows though
|
||||||
setenv = QT_QPA_PLATFORM_PLUGIN_PATH={envdir}/Lib/site-packages/PyQt5/plugins/platforms
|
setenv = QT_QPA_PLATFORM_PLUGIN_PATH={envdir}/Lib/site-packages/PyQt5/plugins/platforms
|
||||||
passenv = DISPLAY XAUTHORITY HOME
|
passenv = PYTHON DISPLAY XAUTHORITY HOME
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
py==1.4.28
|
py==1.4.28
|
||||||
@ -31,7 +32,7 @@ commands =
|
|||||||
{envpython} -m py.test --strict -rfEsw {posargs}
|
{envpython} -m py.test --strict -rfEsw {posargs}
|
||||||
|
|
||||||
[testenv:coverage]
|
[testenv:coverage]
|
||||||
passenv = DISPLAY XAUTHORITY HOME
|
passenv = PYTHON DISPLAY XAUTHORITY HOME
|
||||||
deps =
|
deps =
|
||||||
{[testenv:unittests]deps}
|
{[testenv:unittests]deps}
|
||||||
coverage==3.7.1
|
coverage==3.7.1
|
||||||
@ -65,7 +66,7 @@ commands =
|
|||||||
[testenv:pep257]
|
[testenv:pep257]
|
||||||
skip_install = true
|
skip_install = true
|
||||||
deps = pep257==0.5.0
|
deps = pep257==0.5.0
|
||||||
passenv = LANG
|
passenv = PYTHON LANG
|
||||||
# Disabled checks:
|
# Disabled checks:
|
||||||
# D102: Docstring missing, will be handled by others
|
# D102: Docstring missing, will be handled by others
|
||||||
# D209: Blank line before closing """ (removed from PEP257)
|
# D209: Blank line before closing """ (removed from PEP257)
|
||||||
@ -138,7 +139,7 @@ commands =
|
|||||||
[testenv:smoke]
|
[testenv:smoke]
|
||||||
# https://bitbucket.org/hpk42/tox/issue/246/ - only needed for Windows though
|
# https://bitbucket.org/hpk42/tox/issue/246/ - only needed for Windows though
|
||||||
setenv = QT_QPA_PLATFORM_PLUGIN_PATH={envdir}/Lib/site-packages/PyQt5/plugins/platforms
|
setenv = QT_QPA_PLATFORM_PLUGIN_PATH={envdir}/Lib/site-packages/PyQt5/plugins/platforms
|
||||||
passenv = DISPLAY XAUTHORITY HOME USERNAME USER
|
passenv = PYTHON DISPLAY XAUTHORITY HOME USERNAME USER
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
commands =
|
commands =
|
||||||
|
Loading…
Reference in New Issue
Block a user