summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorHervé Beraud <hberaud@redhat.com>2019-12-20 11:06:37 +0100
committerHervé Beraud <hberaud@redhat.com>2020-01-08 20:04:02 +0100
commit00d376edfb6cf759e556107a1ef2d1302b1ea83c (patch)
treebba64ed921b399ac3e485e91a228fd9c9af343ef /tox.ini
parent498dd44b710f275c9352e44b95048af56fa11f20 (diff)
downloadoslo-policy-00d376edfb6cf759e556107a1ef2d1302b1ea83c.tar.gz
tox: Trivial cleanup
Move 'basepython' to the top-level 'testenv'. Use the default 'install_command' https://tox.readthedocs.io/en/latest/config.html#conf-install_command Change-Id: Ie53c073d62d0adf3627b165f1ad11c02b1927904
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini14
1 files changed, 3 insertions, 11 deletions
diff --git a/tox.ini b/tox.ini
index 0e85d56..17f4966 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,9 +1,10 @@
[tox]
-minversion = 2.0
+minversion = 3.1
envlist = py27,py37,pep8,docs
+ignore_basepython_conflict = True
[testenv]
-install_command = pip install {opts} {packages}
+basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
@@ -11,11 +12,7 @@ deps =
-r{toxinidir}/doc/requirements.txt
commands = stestr run --slowest {posargs}
-[testenv:py27]
-basepython = python2.7
-
[testenv:pep8]
-basepython = python3
deps =
-r{toxinidir}/test-requirements.txt
commands =
@@ -24,11 +21,9 @@ commands =
bandit -r oslo_policy tests -n5
[testenv:venv]
-basepython = python3
commands = {posargs}
[testenv:docs]
-basepython = python3
whitelist_externals =
rm
deps =
@@ -39,7 +34,6 @@ commands =
sphinx-build -W --keep-going -b html doc/source doc/build/html
[testenv:cover]
-basepython = python3
commands = python setup.py test --coverage --coverage-package-name=oslo_policy --testr-args='{posargs}'
[flake8]
@@ -52,7 +46,6 @@ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
import_exceptions = oslo_policy._i18n
[testenv:releasenotes]
-basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
whitelist_externals =
rm
@@ -61,7 +54,6 @@ commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
[testenv:lower-constraints]
-basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt