Arista drivers for ML2 and L3 Service Plugin
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

97 lines
2.3 KiB

[tox]
envlist = py27-dev,py3-dev,pep8-dev
minversion = 2.0
skipsdist = True
[testenv]
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/stable%2Fstein/upper-constraints.txt}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
neutron>=14.0.0,<15.0.0
whitelist_externals =
find
commands =
stestr run {posargs}
[testenv:dev]
# run locally (not in the gate) using editable mode
# https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs
# note that order is important to ensure dependencies don't override
commands =
pip install -q -e "git+https://git.openstack.org/openstack/neutron.git@stable/stein#egg=neutron"
[testenv:py27-dev]
commands =
{[testenv:dev]commands}
pip freeze
stestr run {posargs}
[testenv:py3-dev]
basepython = python3
commands =
{[testenv:dev]commands}
pip freeze
stestr run {posargs}
[testenv:debug]
basepython = python3
commands =
{[testenv:dev]commands}
pip freeze
oslo_debug_helper {posargs}
[testenv:pep8]
basepython = python3
commands =
flake8
neutron-db-manage --subproject networking-arista check_migration
[testenv:pep8-dev]
basepython = python3
commands =
{[testenv:dev]commands}
pip freeze
flake8
neutron-db-manage --subproject networking-arista check_migration
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:cover]
basepython = python3
commands =
find networking_arista -type f -name "*.pyc" -delete
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
[testenv:docs]
basepython = python3
commands = python setup.py build_sphinx
[flake8]
# H803 skipped on purpose per list discussion.
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125,H803,E402,W503,E731
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
[hacking]
import_exceptions = networking_arista._i18n
[testenv:lower-constraints]
basepython = python3
setenv = OS_TEST_TIMEOUT={env:OS_TEST_TIMEOUT:60}
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
neutron>=14.0.0,<15.0.0