summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorTony Breeds <tony@bakeyournoodle.com>2016-12-21 13:19:04 +1100
committerTony Breeds <tony@bakeyournoodle.com>2016-12-21 13:20:16 +1100
commitfb803225f3e7c48958acc86a9e9b747d598320ee (patch)
treed6b48e314078399a416b2da289544054f00f8884 /tox.ini
parent41091617407e4099fe350c314694c2b641cefc48 (diff)
downloadpython-saharaclient-fb803225f3e7c48958acc86a9e9b747d598320ee.tar.gz
Add Constraints support
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-saharaclient. Change-Id: Ie448db6f78865a3dddadf7dc659c7546a5e0fa72
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini6
1 files changed, 4 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index d50df85..dba1191 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,13 +1,15 @@
[tox]
envlist = py27,py34,pypy,pep8,releasenotes
-minversion = 1.6
+minversion = 2.0
skipsdist = True
[testenv]
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}
setenv =
VIRTUAL_ENV={envdir}
+ BRANCH_NAME=master
+ CLIENT_NAME=python-saharaclient
DISCOVER_DIRECTORY=saharaclient/tests/unit
deps =
-r{toxinidir}/requirements.txt