Skip to content

Commit 5984b39

Browse files
ambvgsnedders
authored andcommitted
add tox.ini to simplify local tests on multiple Python versions
1 parent d442ec3 commit 5984b39

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

README.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,19 @@ release tarballs this is unneeded)::
8080
And then they can be run, with ``nose`` installed, using the
8181
``nosetests`` command in the root directory. All should pass.
8282

83+
If you have all compatible Python implementations available on your
84+
system, you can run tests on all of them by using tox::
85+
86+
$ pip install tox
87+
$ tox
88+
...
89+
_______________________ summary ______________________
90+
py26: commands succeeded
91+
py27: commands succeeded
92+
py32: commands succeeded
93+
py33: commands succeeded
94+
congratulations :)
95+
8396

8497
Contributing
8598
------------

tox.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[tox]
2+
envlist = py26,py27,py32,py33
3+
4+
[testenv]
5+
deps =
6+
charade
7+
datrie
8+
Genshi
9+
lxml
10+
nose
11+
six
12+
commands =
13+
{envbindir}/nosetests

0 commit comments

Comments
 (0)