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: I27fd4d41fa66924507d58a980813d150b5299e1b
Boden R 7 months ago
parent
commit
c33002f62d
1 changed files with 21 additions and 0 deletions
  1. 21
    0
      tox.ini

+ 21
- 0
tox.ini View File

@@ -126,3 +126,24 @@ basepython = python3
126 126
 commands =
127 127
   pip install django>=1.11,<2
128 128
   python {toxinidir}/tools/django-manage.py test bgpvpn_dashboard
129
+
130
+[testenv:dev]
131
+# run locally (not in the gate) using editable mode
132
+# https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs
133
+# note that order is important to ensure dependencies don't override
134
+commands =
135
+    pip install -q -e "git+https://git.openstack.org/openstack/networking-bagpipe#egg=networking_bagpipe"
136
+    pip install -q -e "git+https://git.openstack.org/openstack/neutron#egg=neutron"
137
+
138
+[testenv:py3-dev]
139
+basepython = python3
140
+commands =
141
+    {[testenv:dev]commands}
142
+    {[testenv]commands}
143
+
144
+[testenv:pep8-dev]
145
+deps =
146
+    {[testenv:pep8]deps}
147
+commands =
148
+    {[testenv:dev]commands}
149
+    {[testenv:pep8]commands}

Loading…
Cancel
Save