3ab144f096
This fix stolen from: https://review.opendev.org/#/c/658567/ The upper-constraints file wasn't being enforced when installing dependencies in tox runs which can lead to failures like installing Sphinx>2.0 in py27 where it's not supported. This is loosely based on novaclient change I8be883215f27abb58d15b85e8542cbdf32000bac for the same kind of issue. Change-Id: I47d12348e5a80048785a93842f0dfd3060bdbc24
22 lines
526 B
INI
22 lines
526 B
INI
[tox]
|
|
envlist = docs
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
passenv = ZUUL_CACHE_DIR
|
|
REQUIREMENTS_PIP_LOCATION
|
|
install_command = pip install {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps =
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|