From 81038295e7dfea9ac7cf19d4ee53e6b7e3a5492c Mon Sep 17 00:00:00 2001 From: Boden R Date: Wed, 26 Sep 2018 14:53:02 -0600 Subject: [PATCH] add local tox targets for pep8 and py3 This patch adds local tox targets for pep8 and python 3 as per [1] that will install dependencies in editable mode. To run them use the pep8-dev and py3-dev targets respectively. [1] https://etherpad.openstack.org/p/neutron-sibling-setup Change-Id: I22e4ddc1d9a2e82bfb13302caf5be948607bb722 --- tox.ini | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tox.ini b/tox.ini index a0940b3..c20ec51 100644 --- a/tox.ini +++ b/tox.ini @@ -68,3 +68,20 @@ deps = -c{toxinidir}/lower-constraints.txt -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt + +[testenv:dev] +# run locally (not in the gate) using editable mode +# https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs +commands = + pip install -q -e "git+https://git.openstack.org/openstack/neutron#egg=neutron" + +[testenv:py3-dev] +basepython = python3 +commands = + {[testenv:dev]commands} + {[testenv]commands} + +[testenv:pep8-dev] +commands = + {[testenv:dev]commands} + {[testenv:pep8]commands}