diff options
author | Hervé Beraud <hberaud@redhat.com> | 2020-02-11 15:33:00 +0100 |
---|---|---|
committer | Hervé Beraud <hberaud@redhat.com> | 2020-02-11 15:33:00 +0100 |
commit | b764ae19de078893cb3d7b09a9b20aa15aeca370 (patch) | |
tree | 1b5d4634d1de06b69f64f34985c88d41e973eef1 | |
parent | d5142cdf074d99977646d917fa7c735aa6621178 (diff) | |
download | oslo-config-b764ae19de078893cb3d7b09a9b20aa15aeca370.tar.gz |
trivial: Cleanup tox.ini
Update the minversion parameter to use the python -m pip to install
python packages:
https://tox.readthedocs.io/en/latest/changelog.html#id185
Also Inherit the jobs requirements to simplify maintainance.
Change-Id: I730f15a4872334f040d5bd03da37e7c4f9e8148b
-rw-r--r-- | tox.ini | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -1,5 +1,5 @@ [tox] -minversion = 3.1 +minversion = 3.2.0 distribute = False envlist = py37,pep8 ignore_basepython_conflict = true @@ -51,7 +51,9 @@ commands = {posargs} [testenv:docs] whitelist_externals = rm -deps = -r{toxinidir}/doc/requirements.txt +deps = + -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} + -r{toxinidir}/doc/requirements.txt commands = rm -fr doc/build sphinx-build -W --keep-going -b html doc/source doc/build/html {posargs} @@ -65,8 +67,11 @@ enable-extensions = H203,H106 exclude = .tox,dist,doc,*.egg,build [testenv:releasenotes] -deps = -r{toxinidir}/doc/requirements.txt +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 [hacking] |