fix lower constraints targets in tox ini

This patch updates tox ini to support both a dev and build target;
lower-constraints-dev and lower-constraints respectively.
The dev target is for running locally so it manually installs the
required projects whereas the build target doesn't as per zuul's
required project definition in project.yaml.

Also see https://review.openstack.org/#/c/573386/

Change-Id: I0e6cf1ca0f4b07c080ff5a7b221dabedfd8bf6cf
This commit is contained in:
Boden R 2018-06-07 14:21:09 -06:00
parent b42661c957
commit 3cce888421

View File

@ -161,6 +161,14 @@ commands =
[testenv:lower-constraints] [testenv:lower-constraints]
basepython = python3 basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/doc/requirements.txt
-r{toxinidir}/requirements.txt
[testenv:lower-constraints-dev]
basepython = python3
commands = commands =
pip install -q -e "git+https://git.openstack.org/openstack/networking-l2gw#egg=networking_l2gw" pip install -q -e "git+https://git.openstack.org/openstack/networking-l2gw#egg=networking_l2gw"
pip install -q -e "git+https://git.openstack.org/openstack/networking-sfc#egg=networking_sfc" pip install -q -e "git+https://git.openstack.org/openstack/networking-sfc#egg=networking_sfc"