summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2017-12-02 09:37:46 +0100
committerAndreas Jaeger <aj@suse.com>2017-12-02 09:37:46 +0100
commit79d872a99a7b4eb5697b126c2549b8750442024f (patch)
tree8b40cde16b126745a87dc5a7652f259d922a3e83 /tox.ini
parentd9839c1fb7376cc3f859284e1158b377fd1cd23e (diff)
downloadpython-saharaclient-79d872a99a7b4eb5697b126c2549b8750442024f.tar.gz
Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself and install the project correctly. Thus update tox.ini and remove the now obsolete tools/tox_install.sh file. This follows https://review.openstack.org/#/c/508061 to remove tools/tox_install.sh. Change-Id: Ibb97ddc7dc3a1c1cd7b4734377188fa625ddef7e
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini6
1 files changed, 3 insertions, 3 deletions
diff --git a/tox.ini b/tox.ini
index b1e8de7..3cf8dd2 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,13 +5,12 @@ skipsdist = True
[testenv]
usedevelop = True
-install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
+install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
- BRANCH_NAME=master
- CLIENT_NAME=python-saharaclient
DISCOVER_DIRECTORY=saharaclient/tests/unit
deps =
+ -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = find . -type f -name "*.pyc" -delete
@@ -44,6 +43,7 @@ commands = flake8
[testenv:doc8]
deps =
+ -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
doc8