Skip to content

Commit b1a07da

Browse files
Added tox for testing multiple Python versions locally. Updating README shortly.
1 parent 38adab2 commit b1a07da

2 files changed

Lines changed: 29 additions & 1 deletion

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ sdist
1010
*.pyc
1111
venv/
1212
.idea
13-
.env
13+
.env
14+
.python-version
15+
.tox/

tox.ini

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Tox (http://tox.testrun.org/) is a tool for running tests
2+
# in multiple virtualenvs. This configuration file will run the
3+
# test suite on all supported python versions. To use it, "pip install tox"
4+
# and then run "tox" from this directory.
5+
6+
[tox]
7+
envlist = py26, py27, py32
8+
9+
[testenv]
10+
commands = {envbindir}/python -m unittest discover []
11+
deps =
12+
13+
[testenv:py26]
14+
commands = {envbindir}/unit2 discover []
15+
deps = unittest2
16+
basepython = python2.6
17+
18+
[testenv:py27]
19+
commands = {envbindir}/python -m unittest discover []
20+
deps =
21+
basepython = python2.7
22+
23+
[testenv:py32]
24+
commands = {envbindir}/python -m unittest discover []
25+
deps =
26+
basepython = python3.2

0 commit comments

Comments
 (0)