summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorMadhuri Kumari <madhuri.kumari@intel.com>2019-11-22 15:35:24 +0530
committerMadhuri Kumari <madhuri.kumari@intel.com>2019-11-22 15:36:28 +0530
commit18862bb5fae50a385538840d1ee146636a6410c0 (patch)
tree6c44af9e6a1912b00fb8cac3299d658fcc5bbc3f /tox.ini
parent60637c02c613b25c4c57db15a75a48fd2be792b0 (diff)
downloadironic-python-agent-18862bb5fae50a385538840d1ee146636a6410c0.tar.gz
Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle. ironic-python-agent is ready with python 3 and ok to drop the python 2.7 support. Complete discussion & schedule can be found in - http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html - https://etherpad.openstack.org/p/drop-python2-support Ussuri Communtiy-wide goal - https://review.opendev.org/#/c/691178/ Change-Id: Ifd0e0b99bb82a7d7e82d6c14309468196f5734fc
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini15
1 files changed, 2 insertions, 13 deletions
diff --git a/tox.ini b/tox.ini
index e4c22c6b..45de473f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,11 +1,12 @@
[tox]
minversion = 2.0
skipsdist = True
-envlist = py3,py27,functional,pep8
+envlist = py3,functional,pep8
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
+basepython = python3
setenv =
VIRTUAL_ENV={envdir}
PYTHONDONTWRITEBYTECODE = 1
@@ -20,7 +21,6 @@ commands = stestr run {posargs}
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
[testenv:functional]
-basepython = python3
usedevelop = True
# Define virtualenv directory, port to use for functional testing, and number
# of seconds to wait for the agent to come alive during functional testing.
@@ -33,7 +33,6 @@ setenv =
commands = stestr run {posargs}
[testenv:pep8]
-basepython = python3
whitelist_externals = bash
commands =
flake8 {posargs:ironic_python_agent imagebuild}
@@ -43,7 +42,6 @@ commands =
doc8 doc/source README.rst
[testenv:cover]
-basepython = python3
setenv = VIRTUAL_ENV={envdir}
PYTHON=coverage run --source ironic_python_agent --omit='*tests*' --parallel-mode
commands =
@@ -54,24 +52,20 @@ commands =
coverage html -d ./cover --omit='*tests*'
[testenv:venv]
-basepython = python3
setenv = PYTHONHASHSEED=0
commands = {posargs:}
[testenv:debug]
-basepython = python3
envdir = {toxworkdir}/venv
commands = oslo_debug_helper -t ironic_python_agent/tests/unit {posargs}
[testenv:docs]
-basepython = python3
setenv = PYTHONHASHSEED=0
sitepackages = False
commands =
python setup.py build_sphinx
[testenv:pdf-docs]
-basepython = python3
whitelist_externals = make
setenv = PYTHONHASHSEED=0
sitepackages = False
@@ -80,7 +74,6 @@ commands =
make -C doc/build/pdf
[testenv:releasenotes]
-basepython = python3
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[flake8]
@@ -102,14 +95,12 @@ enable-extensions=H106,H203,H204,H205,H210,H904
import_exceptions = ironic.openstack.common.gettextutils._,testtools.matchers
[testenv:checkconfig]
-basepython = python3
sitepackages = False
envdir = {toxworkdir}/venv
commands =
{toxinidir}/tools/config/check_uptodate.sh
[testenv:genconfig]
-basepython = python3
sitepackages = False
envdir = {toxworkdir}/venv
commands =
@@ -117,14 +108,12 @@ commands =
[testenv:lower-constraints]
-basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
[testenv:bandit]
-basepython = python3
deps = -r{toxinidir}/test-requirements.txt
commands = bandit -r ironic_python_agent -x tests -n5 -ll -c tools/bandit.yml