summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorIhar Hrachyshka <ihrachys@redhat.com>2016-05-18 10:44:16 +0200
committerAkihiro Motoki <amotoki@gmail.com>2016-05-19 09:49:36 +0000
commit78d778cdeccb6a24b7f6fa7e3c2eb0891b633701 (patch)
treeeb43c15efd5316a5155cc7f18b9bf69af04660ea /tox.ini
parent81939ec4954600211f184a6021324c277a52a066 (diff)
downloadpython-neutronclient-78d778cdeccb6a24b7f6fa7e3c2eb0891b633701.tar.gz
Constraint tox targets with upper-constraints.txt
Client version pin is maintained in upper-constraints.txt file, so we should replace it in the file with source based specifier before applying it to pip install, otherwise pip fails with: Could not satisfy constraints for 'python-neutronclient': installation from path or url cannot be constrained to a version Change-Id: I33302cdcab980a42c39dc9ec1e430add459615ff Closes-Bug: #1583050
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini9
1 files changed, 8 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 028453f..92ded10 100644
--- a/tox.ini
+++ b/tox.ini
@@ -10,7 +10,8 @@ setenv = VIRTUAL_ENV={envdir}
LANGUAGE=en_US:en
LC_ALL=C
usedevelop = True
-install_command = pip install -U {opts} {packages}
+install_command =
+ {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
# Delete bytecodes from normal directories before running tests.
@@ -27,6 +28,8 @@ commands = flake8
distribute = false
[testenv:venv]
+# TODO(ihrachys): remove once infra supports constraints for this target
+install_command = pip install -U {opts} {packages}
commands = {posargs}
[testenv:functional]
@@ -40,6 +43,8 @@ setenv =
OS_NEUTRONCLIENT_EXEC_DIR = {envdir}/bin
[testenv:cover]
+# TODO(ihrachys): remove once infra supports constraints for this target
+install_command = pip install -U {opts} {packages}
commands =
python setup.py test --coverage --coverage-package-name=neutronclient --testr-args='{posargs}'
coverage report
@@ -48,6 +53,8 @@ commands =
commands = sphinx-build -W -b html doc/source doc/build/html
[testenv:releasenotes]
+# TODO(ihrachys): remove once infra supports constraints for this target
+install_command = pip install -U {opts} {packages}
commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[flake8]