36c980bcc5
Adding constraints support to libraries is slightly more complex than services as the libraries themselves are listed in upper-constraints.txt which leads to errors that you can't install a specific version and a constrained version. This change adds constraints support by also adding a helper script to edit the constraints to remove python-manilaclient. Change-Id: I2d5bb052c7e499175ef3d32fdc35c9e67dc260ac
72 lines
1.8 KiB
INI
72 lines
1.8 KiB
INI
[tox]
|
|
distribute = False
|
|
envlist = py35,py34,py27,pep8
|
|
minversion = 2.0
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
BRANCH_NAME=master
|
|
CLIENT_NAME=python-manilaclient
|
|
LANG=en_US.UTF-8
|
|
LANGUAGE=en_US:en
|
|
LC_ALL=C
|
|
|
|
whitelist_externals = find
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
ostestr {posargs}
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper -t manilaclient/tests {posargs}
|
|
|
|
[testenv:debug-py27]
|
|
basepython = python2.7
|
|
commands = oslo_debug_helper -t manilaclient/tests {posargs}
|
|
|
|
[testenv:debug-py34]
|
|
basepython = python3.4
|
|
commands = oslo_debug_helper -t manilaclient/tests {posargs}
|
|
|
|
[testenv:pep8]
|
|
commands =
|
|
flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:releasenotes]
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees \
|
|
-b html releasenotes/source releasenotes/build/html
|
|
|
|
[testenv:functional]
|
|
setenv =
|
|
{[testenv]setenv}
|
|
OS_TEST_PATH = ./manilaclient/tests/functional
|
|
OS_TEST_TIMEOUT = 500
|
|
OS_MANILA_EXEC_DIR = {envdir}/bin
|
|
commands =
|
|
{envdir}/bin/python setup.py install
|
|
{envdir}/bin/python setup.py testr --testr-args='{posargs}'
|
|
|
|
[testenv:genconfig]
|
|
whitelist_externals = bash
|
|
commands =
|
|
{envdir}/bin/python setup.py install
|
|
{envdir}/bin/oslo-config-generator --config-file etc/oslo-config-generator/manilaclient.conf
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
[flake8]
|
|
# F821: undefined name
|
|
ignore = F821
|
|
builtins = _
|
|
exclude = .venv,.tox,dist,doc,*egg
|