diff options
author | Calum Lind <calumlind@gmail.com> | 2018-10-08 16:05:40 +0100 |
---|---|---|
committer | Calum Lind <calumlind@gmail.com> | 2018-10-10 17:57:02 +0100 |
commit | 6fdbf0ba5db98dfca28e8e37df0ea046f5c99c60 (patch) | |
tree | 141c6dbf1a5bdd69b819954fcd7e7a243df11b2f /tox.ini | |
parent | a980f8e959dfedef5d8a339246cb555fd63d9601 (diff) | |
download | deluge-6fdbf0ba5db98dfca28e8e37df0ea046f5c99c60.tar.gz deluge-6fdbf0ba5db98dfca28e8e37df0ea046f5c99c60.tar.bz2 deluge-6fdbf0ba5db98dfca28e8e37df0ea046f5c99c60.zip |
Update tox and CI for Python 3
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 27 |
1 files changed, 20 insertions, 7 deletions
@@ -8,10 +8,14 @@ envlist = py27, lint, docs minversion=2.0 [base] -deps = -rrequirements.txt +deps = +# Minimum pip version and setuptools to fix issue running on travis. + pip>=10 + setuptools + -rrequirements.txt [testenv] -install_command = pip install --ignore-installed {opts} {packages} +install_command = {envpython} -m pip install --ignore-installed {opts} {packages} passenv = DISPLAY PYTHONPATH setenv = PYTHONPATH = {toxinidir} sitepackages = True @@ -23,7 +27,7 @@ whitelist_externals = pytest [pytest] # Hide logged warnings and errors in test output. log_cli_level = CRITICAL - +addopts = -p no:warnings # ========== # Unit tests @@ -64,8 +68,6 @@ commands = pytest -v --basetemp=_pytest_temp -s deluge/plugins [testenv:py27] -deps = - {[testenv]deps} basepython = python2.7 commands = {[testenv:pydef]commands} @@ -194,7 +196,18 @@ commands = # ======================== # Developement Environment # ======================== -[testenv:devenv] -envdir = .venv +[basedev] usedevelop = True deps = -rrequirements-dev.txt + +[testenv:denv2] +envdir = .venv2 +basepython = python2.7 +usedevelop = {[basedev]usedevelop} +deps = {[basedev]deps} + +[testenv:denv3] +basepython = python3 +envdir = .venv3 +usedevelop = {[basedev]usedevelop} +deps = {[basedev]deps} |