summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2014-05-27 12:41:05 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2014-05-27 12:41:05 +0200
commitb30138078f76cd532e7bbef6548f0d5fac71d3a1 (patch)
treed6ac31f87bc0245413cadbe2859aa99af39c8001
parentdb1c6723522198b0010d66130617fb43d1fe2469 (diff)
downloadpysendfile-b30138078f76cd532e7bbef6548f0d5fac71d3a1.tar.gz
add tox file
-rw-r--r--HISTORY.rst1
-rw-r--r--tox.ini27
2 files changed, 28 insertions, 0 deletions
diff --git a/HISTORY.rst b/HISTORY.rst
index 9080e9b..fd6dfb8 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -9,6 +9,7 @@ Version 2.0.1 (unreleased)
- #22: pysendfile won't compile on python 3.4
- #23: add a Makefile
- #24: use of travis continuous integration
+- #25: use tox for multiple python versions testing
Version 2.0.0 - 2012-01-12
==========================
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..72dc6e2
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,27 @@
+# Tox (http://tox.testrun.org/) is a tool for running tests
+# in multiple virtualenvs. This configuration file will run the
+# test suite on all supported python versions.
+# To use it run "pip install tox" and then run "tox" from this
+# directory.
+
+[tox]
+envlist = py26, py27, py32, py33, py34
+
+[testenv]
+deps =
+ pytest
+ flake8
+setenv =
+ PYTHONPATH = {toxinidir}/test
+commands =
+ python test/test_sendfile.py
+ flake8 --exclude=build,.tox,.git
+
+[testenv:py26]
+deps =
+ flake8
+ pytest
+ unittest2
+commands =
+ python test/test_sendfile.py
+ flake8 --exclude=build,.tox,.git