-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
41 lines (36 loc) · 860 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[tox]
minversion = 3.1
envlist = docs
skipsdist = True
ignore_basepython_conflict = True
[testenv]
basepython = python3
setenv =
PYTHONUNBUFFERED=1
VIRTUAL_ENV={envdir}
commands =
/usr/bin/find . -type f -name "*.pyc" -delete
passenv =
*_proxy
*_PROXY
whitelist_externals =
bash
[testenv:venv]
commands = {posargs}
[testenv:docs]
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
commands =
bash -c "rm -rf doc/build"
doc8 doc
sphinx-build -W --keep-going -b html doc/source doc/build/html
[doc8]
extensions = .rst
[testenv:releasenotes]
whitelist_externals =
rm
deps = {[testenv:docs]deps}
commands =
rm -rf releasenotes/build
sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html