diff --git a/tox.ini b/tox.ini index c183981..3bb936e 100644 --- a/tox.ini +++ b/tox.ini @@ -1,16 +1,19 @@ [tox] +minversion = 4 envlist = check, py3-lint, black, py3-unit, integration [tox:jenkins] envlist = check, py{37,38,39}-{lint}, black, py{37,38,39}-{unit}, doc [testenv] -skipsdist = True -usedevelop = True - +package = editable # envs can be listed with: # -# tox -a -v +# tox list +# +# For Jenkins override you need to install in your environment: +# https://gerrit.wikimedia.org/r/integration/tox-jenkins-override.git#egg=tox-jenkins-override +# Then: # JENKINS_URL=1 tox -a -v # # envs configurations can be checked via: @@ -33,6 +36,9 @@ description = doc: Build documentation using Sphinx venv: Dummy virtualenv to easily run commands envdir = +# tox v3 provisionining would fail with: +# ConfigError:envdir must not equal toxinidir + .tox: {toxworkdir}/.pkg py3-unit: {toxworkdir}/venv-py3 py37-unit: {toxworkdir}/venv-py37 py38-unit: {toxworkdir}/venv-py38 @@ -64,8 +70,7 @@ args_are_paths = False [testenv:check] # So we at least try sdist once -skipsdist = False -usedevelop = False +package = sdist commands = python setup.py --version python setup.py check