summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2017-12-04 06:45:47 +0100
committerFlorian Bruhin <git@the-compiler.org>2017-12-04 06:45:47 +0100
commit7ef64c0f87adecb51017327832e17ef64ea1049e (patch)
treee3d39d46b8dad08c2e1c044290d28005a053ec35 /tox.ini
parent2c2d7fe7349cfef6272e3db9d1a9a52878bde88b (diff)
downloadqutebrowser-7ef64c0f87adecb51017327832e17ef64ea1049e.tar.gz
qutebrowser-7ef64c0f87adecb51017327832e17ef64ea1049e.zip
Read $PYTHON in every tox.ini environment
See #2341
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini39
1 files changed, 10 insertions, 29 deletions
diff --git a/tox.ini b/tox.ini
index a45e04c79..e59e8b660 100644
--- a/tox.ini
+++ b/tox.ini
@@ -35,16 +35,7 @@ commands =
# other envs
[testenv:mkvenv]
-basepython = python3
-commands = {envpython} scripts/link_pyqt.py --tox {envdir}
-envdir = {toxinidir}/.venv
-usedevelop = true
-deps =
- -r{toxinidir}/requirements.txt
-
-# This is used for Windows, since binary name is different
-[testenv:mkvenv-win]
-basepython = python.exe
+basepython = {env:PYTHON:python3}
commands = {envpython} scripts/link_pyqt.py --tox {envdir}
envdir = {toxinidir}/.venv
usedevelop = true
@@ -61,7 +52,7 @@ deps = {[testenv:mkvenv]deps}
# Virtualenv with PyQt5 from PyPI
[testenv:mkvenv-pypi]
-basepython = python3
+basepython = {env:PYTHON:python3}
envdir = {toxinidir}/.venv
commands = {envpython} -c ""
usedevelop = true
@@ -69,19 +60,9 @@ deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/misc/requirements/requirements-pyqt.txt
-# This is used for Windows, since binary name is different
-[testenv:mkvenv-win-pypi]
-basepython = python.exe
-commands = {envpython} -c ""
-envdir = {toxinidir}/.venv
-usedevelop = true
-deps =
- -r{toxinidir}/requirements.txt
- -r{toxinidir}/misc/requirements/requirements-pyqt.txt
-
[testenv:misc]
ignore_errors = true
-basepython = python3
+basepython = {env:PYTHON:python3}
# For global .gitignore files
passenv = HOME
deps =
@@ -91,7 +72,7 @@ commands =
{envpython} scripts/dev/misc_checks.py spelling
[testenv:vulture]
-basepython = python3
+basepython = {env:PYTHON:python3}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/misc/requirements/requirements-vulture.txt
@@ -101,7 +82,7 @@ commands =
{envpython} scripts/dev/run_vulture.py
[testenv:vulture-pyqtlink]
-basepython = python3
+basepython = {env:PYTHON:python3}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/misc/requirements/requirements-vulture.txt
@@ -137,7 +118,7 @@ commands =
{envpython} scripts/dev/run_pylint_on_tests.py {toxinidir} --output-format=colorized --reports=no {posargs}
[testenv:pylint-master]
-basepython = python3
+basepython = {env:PYTHON:python3}
passenv = {[testenv:pylint]passenv}
deps =
-r{toxinidir}/requirements.txt
@@ -149,7 +130,7 @@ commands =
{envpython} scripts/dev/run_pylint_on_tests.py --output-format=colorized --reports=no {posargs}
[testenv:flake8]
-basepython = python3
+basepython = {env:PYTHON:python3}
passenv =
deps =
-r{toxinidir}/requirements.txt
@@ -158,7 +139,7 @@ commands =
{envpython} -m flake8 {posargs:qutebrowser tests scripts}
[testenv:pyroma]
-basepython = python3
+basepython = {env:PYTHON:python3}
passenv =
deps =
-r{toxinidir}/misc/requirements/requirements-pyroma.txt
@@ -166,7 +147,7 @@ commands =
{envdir}/bin/pyroma .
[testenv:check-manifest]
-basepython = python3
+basepython = {env:PYTHON:python3}
passenv =
deps =
-r{toxinidir}/misc/requirements/requirements-check-manifest.txt
@@ -174,7 +155,7 @@ commands =
{envdir}/bin/check-manifest --ignore 'qutebrowser/git-commit-id,qutebrowser/html/doc,qutebrowser/html/doc/*,*/__pycache__'
[testenv:docs]
-basepython = python3
+basepython = {env:PYTHON:python3}
whitelist_externals = git
passenv = TRAVIS TRAVIS_PULL_REQUEST
deps =