summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2019-05-21 09:56:05 +0100
committerStephen Finucane <sfinucan@redhat.com>2019-06-13 15:46:30 +0100
commit79ef8d989a07e33303396a68b9d6fc19f22deeeb (patch)
tree97de7a4bd318903a7bd03c9f20b54193a4fdd6f4 /tox.ini
parent17f9439e9f9026dd3e8cae1e917a78e80195152c (diff)
downloadpbr-79ef8d989a07e33303396a68b9d6fc19f22deeeb.tar.gz
Resolve some issue with tox.ini, setup.cfg
- Use constraints for documentation targets - Indicate support for Python 3.6, 3.7 - Fix indentation Change-Id: I486b6f645fa71f0fa519464465bf26411ca4faf4 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini15
1 files changed, 3 insertions, 12 deletions
diff --git a/tox.ini b/tox.ini
index 5cc32a9..7ae6f9e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,12 +1,11 @@
[tox]
minversion = 3.1
-envlist = pep8,py{37,36,35,27},docs
+envlist = pep8,py27,py36,py37,docs
ignore_basepython_conflict = True
-skip_missing_interpreters = True
[testenv]
usedevelop = True
-install_command = pip install {opts} {packages}
+basepython = python3
passenv = PBR_INTEGRATION PIPFLAGS PIPVERSION PBRVERSION REPODIR WHEELHOUSE PROJECTS
setenv =
OS_STDOUT_CAPTURE={env:OS_STDOUT_CAPTURE:1}
@@ -18,11 +17,9 @@ deps =
commands = stestr run --suppress-attachments {posargs}
[testenv:pep8]
-basepython = python3
commands = flake8 {posargs}
[testenv:docs]
-basepython = python3
whitelist_externals = rm
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
@@ -32,21 +29,16 @@ commands =
sphinx-build -W -b html doc/source doc/build/html {posargs}
[testenv:releasenotes]
-basepython = python3
whitelist_externals = rm
-deps =
- -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
- -r{toxinidir}/doc/requirements.txt
+deps = {[testenv:docs]deps}
commands =
rm -rf releasenotes/build
sphinx-build -W -b html -d releasenotes/build/doctrees releasenotes/source releasenotes/build/html
[testenv:venv]
-basepython = python3
commands = {posargs}
[testenv:cover]
-basepython = python3
setenv =
PYTHON=coverage run --source pbr --parallel-mode
commands =
@@ -64,7 +56,6 @@ exclude = .venv,.tox,dist,doc,*.egg,build
show-source = true
[testenv:lower-constraints]
-basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt