summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Piwowarczyk <m.piwowarczy@samsung.com>2018-09-13 16:09:32 +0200
committerMarcin Piwowarczyk <m.piwowarczy@samsung.com>2018-09-14 10:33:29 +0200
commit6c6d43eb1a74cfb985308caae8d26d72b9581522 (patch)
tree61321df4530ddbff8c0c37f4689c1e77d646dc5c
parente10725fe38306ab3522bcb865fd9c5273256f2fe (diff)
downloadtrove-6c6d43eb1a74cfb985308caae8d26d72b9581522.tar.gz
Use latests version of python-troveclient in tests
This patchset changes version of python-troveclient package version used in tests. So far, version from global constrain file was used [1]. In order to achive this, a local constrain file for tests requirements has been added. This made it possible to override global constrain versions. [1] openstack/requirements/upper-constraints.txt Change-Id: Ic4383f0249e5bd367461f63f66217af959aefba4 Signed-off-by: Marcin Piwowarczyk <m.piwowarczy@samsung.com>
-rw-r--r--test-upper-constraints.txt1
-rw-r--r--tox.ini1
2 files changed, 2 insertions, 0 deletions
diff --git a/test-upper-constraints.txt b/test-upper-constraints.txt
new file mode 100644
index 00000000..debd8e2c
--- /dev/null
+++ b/test-upper-constraints.txt
@@ -0,0 +1 @@
+git+https://git.openstack.org/openstack/python-troveclient#egg=python-troveclient
diff --git a/tox.ini b/tox.ini
index a2f41f75..d75c8f1e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -12,6 +12,7 @@ setenv = VIRTUAL_ENV={envdir}
usedevelop = True
install_command = pip install \
+ -c{env:TEST_UPPER_CONSTRAINTS_FILE:{toxinidir}/test-upper-constraints.txt} \
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} \
-U {opts} {packages}
deps = -r{toxinidir}/requirements.txt