Browse Source

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: If70b6e746af5bb578f9257dfef0c2f33333b5524
Boden R 7 months ago
parent
commit
331f1b508d
1 changed files with 19 additions and 0 deletions
  1. 19
    0
      tox.ini

+ 19
- 0
tox.ini View File

@@ -145,3 +145,22 @@ deps =
145 145
   -c{toxinidir}/lower-constraints.txt
146 146
   -r{toxinidir}/test-requirements.txt
147 147
   -r{toxinidir}/requirements.txt
148
+
149
+[testenv:dev]
150
+# run locally (not in the gate) using editable mode
151
+# https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs
152
+commands =
153
+    pip install -q -e "git+https://git.openstack.org/openstack/neutron#egg=neutron"
154
+
155
+[testenv:py3-dev]
156
+basepython = python3
157
+commands =
158
+    {[testenv:dev]commands}
159
+    {[testenv]commands}
160
+
161
+[testenv:pep8-dev]
162
+deps =
163
+    {[testenv]deps}
164
+commands =
165
+    {[testenv:dev]commands}
166
+    {[testenv:pep8]commands}

Loading…
Cancel
Save