Manage constraints with testenv install_command

This prevents having to duplicate the -c{} deps argument
across all environments in tox.ini

Change-Id: I681688df779557654b001caf33ca6ffbda08f43b
This commit is contained in:
Dantali0n 2021-07-02 10:07:48 +02:00
parent 25981997bd
commit 8a2d2ebd79

View File

@ -14,8 +14,8 @@ setenv = VIRTUAL_ENV={envdir}
whitelist_externals = /bin/bash
rm
find
install_command = pip install -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages}
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
@ -40,7 +40,6 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
[testenv:docs]
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/doc/requirements.txt
commands = sphinx-build -W -b html doc/source doc/build/html