You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2015/11/08 17:49:35 UTC
[2/5] libcloud git commit: Factorize and clean tox.ini
Factorize and clean tox.ini
Closes #608
Signed-off-by: Tomaz Muraus <to...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/04a305aa
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/04a305aa
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/04a305aa
Branch: refs/heads/trunk
Commit: 04a305aac7c2f6386b1f3ae61102885ae11aa06f
Parents: f23063e
Author: ZuluPro <mo...@hotmail.com>
Authored: Mon Sep 21 20:36:47 2015 -0400
Committer: Tomaz Muraus <to...@apache.org>
Committed: Sun Nov 8 17:04:42 2015 +0100
----------------------------------------------------------------------
.travis.yml | 1 +
tox.ini | 57 ++++++++++++++++----------------------------------------
2 files changed, 17 insertions(+), 41 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/04a305aa/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index bee847c..c48d86a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,5 @@
language: python
+# Add or remove version for match with Travis support
python:
- 2.6
- 2.7
http://git-wip-us.apache.org/repos/asf/libcloud/blob/04a305aa/tox.ini
----------------------------------------------------------------------
diff --git a/tox.ini b/tox.ini
index 77a7558..0f2f6a2 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,52 +1,28 @@
[tox]
-envlist = py2.5,py2.6,py2.7,pypypy,py3.2,py3.3,py3.4,lint
-setenv =
- PIP_USE_MIRRORS=1
+envlist = py{2.5,2.6,2.7,pypy,3.2,3.3,3.4,3.5},lint
[testenv]
-deps = -r{toxinidir}/requirements-tests.txt
- backports.ssl_match_hostname
- unittest2
- lockfile
- paramiko
+deps =
+ -r{toxinidir}/requirements-tests.txt
+ lockfile
+ py{2.5,2.6,2.7,pypy}: paramiko
+ py{2.5,2.6}: unittest2
commands = cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
python setup.py test
-
-[testenv:py2.5]
-setenv = PIP_INSECURE=1
-deps = -r{toxinidir}/requirements-tests.txt
- backports.ssl_match_hostname
- unittest2
- lockfile
- ssl
- simplejson
- paramiko
-
-[testenv:pypypy]
-deps = -r{toxinidir}/requirements-tests.txt
- backports.ssl_match_hostname
- unittest2
- lockfile
-
-[testenv:py3.2]
-deps = -r{toxinidir}/requirements-tests.txt
- lockfile
-
-[testenv:py3.3]
-deps = -r{toxinidir}/requirements-tests.txt
- lockfile
-
-[testenv:py3.4]
-# At some point we can switch to use the stdlib provided mock module on
-# Python3.4+
-deps = -r{toxinidir}/requirements-tests.txt
- lockfile
+basepython =
+ py2.5: python2.5
+ py2.6: python2.6
+ {py2.7,lint,pylint,docs}: python2.7
+ pypypy: pypy
+ py3.2: python3.2
+ py3.3: python3.3
+ py3.4: python3.4
+whitelist_externals = cp
[testenv:docs]
deps = sphinx
pysphere
backports.ssl_match_hostname
-basepython = python2.7
changedir = docs
commands = python ../contrib/generate_provider_feature_matrix_table.py
sphinx-apidoc -d 2 ../libcloud/ -o apidocs/
@@ -55,11 +31,10 @@ commands = python ../contrib/generate_provider_feature_matrix_table.py
[testenv:scrape-ec2-prices]
deps = requests
demjson
-basepython = python2.7
commands = python contrib/scrape-ec2-prices.py
[testenv:pylint]
-depds = pylint
+deps = pylint
backports.ssl_match_hostname
commands = pylint --rcfile=.pylintrc -E libcloud/