Skip to content

Commit 8c899f9

Browse files
committedMay 29, 2014
Make tox work against 2.7 and 3.4 for quick check
Travis can then check more versions and catch any lingering problems, but this at least allows one Python 2 and one Python 3 spot-check locally before issuing a commit.
1 parent 37ee7b0 commit 8c899f9

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed
 

‎tox.ini

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
[tox]
2-
envlist = py26, py27
2+
envlist = py27, py34
33
[testenv]
44
commands = python -m unittest discover ephem
5-
[testenv:py26]
6-
deps =
7-
unittest2
8-
commands = unit2 discover ephem
5+
6+
# Without the following "basepython" directives, tox will try building a
7+
# virtual environment using the Anaconda version of Python on my path,
8+
# and then platform.python_version() inside of its virtual environment
9+
# dies with "ValueError: failed to parse CPython sys.version".
10+
11+
[testenv:py27]
12+
changedir = .tox
13+
basepython = /usr/bin/python2.7
14+
[testenv:py34]
15+
changedir = .tox
16+
basepython = /usr/bin/python3.4

0 commit comments

Comments
 (0)