summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatal Ngétal <hobbestigrou@erakis.eu>2019-05-23 21:48:41 +0200
committerNatal Ngétal <hobbestigrou@erakis.eu>2019-07-17 10:57:48 +0200
commitd5589a7366a60e396880dc2bf3fc0253f5feece6 (patch)
treeb4a0a17977086a90528115d35129321b2f61b550
parent44879927ea67a4524c64753abbf0438292465ba7 (diff)
downloadoslo-log-d5589a7366a60e396880dc2bf3fc0253f5feece6.tar.gz
Modify the constraints url in tox.
Use the hotness for constraints. Change-Id: I73e284393ce26c91ea675d5be213ff5e910b4dfe
-rw-r--r--doc/requirements.txt3
-rw-r--r--tox.ini18
2 files changed, 12 insertions, 9 deletions
diff --git a/doc/requirements.txt b/doc/requirements.txt
index dc949b2..30ef4c8 100644
--- a/doc/requirements.txt
+++ b/doc/requirements.txt
@@ -6,3 +6,6 @@ sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD
sphinx!=1.6.6,!=1.6.7,>=1.6.2;python_version>='3.4' # BSD
openstackdocstheme>=1.18.1 # Apache-2.0
reno>=2.5.0 # Apache-2.0
+
+# Optional dependencies that are needed to build docs
+fixtures>=3.0.0 # Apache-2.0/BSD
diff --git a/tox.ini b/tox.ini
index 2b7099e..e66f238 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,13 +5,9 @@ envlist = py35,py27,pep8
[testenv]
whitelist_externals =
find
-setenv =
- VIRTUAL_ENV={envdir}
- BRANCH_NAME=master
- CLIENT_NAME=oslo.log
-install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt} {opts} {packages}
-deps = -r{toxinidir}/test-requirements.txt
- -e.[fixtures]
+deps =
+ -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/stein}
+ -r{toxinidir}/test-requirements.txt
commands =
find . -type f -name "*.pyc" -delete
stestr run {posargs}
@@ -30,12 +26,16 @@ commands = {posargs}
[testenv:docs]
basepython = python3
-deps = -r{toxinidir}/doc/requirements.txt
+deps =
+ -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/stein}
+ -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -W -b html doc/source doc/build/html
[testenv:releasenotes]
basepython = python3
-deps = -r{toxinidir}/doc/requirements.txt
+deps =
+ -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/stein}
+ -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -W -b html releasenotes/source releasenotes/build/html
[testenv:cover]