summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorSean McGinnis <sean.mcginnis@gmail.com>2020-03-13 13:28:14 -0500
committerSean McGinnis <sean.mcginnis@gmail.com>2020-03-13 13:28:14 -0500
commit1c8e5e801365055a2a7c37b57dbfd1e0ea7c8716 (patch)
tree945cccf59f6b4781898950446dee51d874dacbec /tox.ini
parentb0d3e37732786708c7d775eeb3f7e919e3d95c42 (diff)
downloadpython-designateclient-1c8e5e801365055a2a7c37b57dbfd1e0ea7c8716.tar.gz
Drop py27 support
Per the Ussuri cycle goal, this drops py27 testing and support. https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html Change-Id: I0c525eb48270494e8171042e56e14867c53e5af3 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini25
1 files changed, 15 insertions, 10 deletions
diff --git a/tox.ini b/tox.ini
index e29e2ce..db48a9f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,9 +1,14 @@
[tox]
-envlist = py27,py37,flake8
-minversion = 2.0
+envlist = py36,py37,flake8
+minversion = 3.1.0
skipsdist = True
+skip_missing_interpreters = true
+# this allows tox to infer the base python from the environment name
+# and override any basepython configured in this file
+ignore_basepython_conflict = true
[testenv]
+basepython = python3
usedevelop = True
install_command = pip install {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
@@ -25,7 +30,6 @@ commands =
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
[testenv:docs]
-basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
@@ -33,19 +37,15 @@ deps =
commands = sphinx-build -b html doc/source doc/build/html
[testenv:flake8]
-basepython = python3
commands = flake8
[testenv:pep8]
-basepython = python3
commands = flake8
[testenv:pyflakes]
-basepython = python3
commands = flake8
[testenv:cover]
-basepython = python3
setenv =
PYTHON=coverage run --source designateclient --parallel-mode
commands =
@@ -55,7 +55,6 @@ commands =
coverage xml -o cover/coverage.xml
[testenv:venv]
-basepython = python3
commands = {posargs}
[testenv:functional]
@@ -68,8 +67,15 @@ passenv = OS_STDOUT_CAPTURE
OS_DEBUG
TEMPEST_CONFIG
+[testenv:functional-py36]
+setenv =
+ {[testenv:functional]setenv}
+
+[testenv:functional-py37]
+setenv =
+ {[testenv:functional]setenv}
+
[testenv:releasenotes]
-basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
@@ -89,7 +95,6 @@ builtins = _
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools
[testenv:lower-constraints]
-basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt