jh629g e687324086 Update ranger-tempest-plugin to python 3.6
Small changes to ensure ranger-tempest-plugin
is ready for the end of python 2.7 support.

Change-Id: Ib1dd506ccf5bbd419ced9c3e81dabfb0cde08719
2019-08-13 10:10:09 -05:00

79 lines
1.3 KiB
INI

[tox]
minversion = 3.8
envlist = py36,pep8,pylint,tempest-sanity
skipdist = True
[testenv]
usedevelop = True
install_command = pip install {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
commands =
find . -type f -name "*.pyc" -delete
whitelist_externals =
find
[testenv:venv]
commands = {posargs}
#Linters
[testenv:pep8]
sitepackages = True
basepython = python
deps =
flake8>=2.6.2, <3.4.0
flake8-import-order>=0.9, <0.13
commands =
bash changed_python_files.sh {toxinidir} "flake" {posargs}
whitelist_externals =
bash
# For use in development environment
[testenv:pep8dev]
sitepackages = True
basepython = python
skip_install = true
deps =
{[testenv:pep8]deps}
commands =
{[testenv:pep8]commands} dev
whitelist_externals =
bash
[testenv:pylint]
sitepackages = True
basepython = python
deps =
pylint==1.8.2
commands =
bash changed_python_files.sh {toxinidir} "pylint" {posargs}
whitelist_externals =
bash
# For use in development environment
[testenv:pylintdev]
sitepackages = True
basepython = python
skip_install = true
deps =
{[testenv:pylint]deps}
commands =
{[testenv:pylint]commands} dev
whitelist_externals =
bash
# Ranger Tempest sanity check
[testenv:tempest-sanity]
description = tempest run -l as sanity check
sitepackages = True
basepython = python
deps = -r requirements.txt
commands =
stestr init
tempest run -l