diff options
author | Doug Hellmann <doug@doughellmann.com> | 2018-06-06 17:58:16 -0400 |
---|---|---|
committer | Doug Hellmann <doug@doughellmann.com> | 2018-06-13 15:34:11 -0400 |
commit | fb96e8fb87acfc1df4c02c6d3a1499c018f6c97d (patch) | |
tree | 0795b0f40db748c8e57249aef76a485afb7cb8d2 | |
parent | bce298fb608032b08dad4d6c1f51d946c1777040 (diff) | |
download | python-barbicanclient-fb96e8fb87acfc1df4c02c6d3a1499c018f6c97d.tar.gz |
fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I872ea4b71f35c5bad53fe1bcf2a50a6f21b8f9ee
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
-rw-r--r-- | tox.ini | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -20,15 +20,19 @@ commands = coverage report -m [testenv:debug] +basepython = python3 commands = oslo_debug_helper -t barbicanclient/tests {posargs} [testenv:pep8] +basepython = python3 commands = flake8 {posargs} [testenv:venv] +basepython = python3 commands = {posargs} [testenv:docs] +basepython = python3 deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} -r{toxinidir}/requirements.txt |