summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorMikhail Korobov <kmike84@gmail.com>2012-06-26 23:09:49 +0600
committerMikhail Korobov <kmike84@gmail.com>2012-06-26 23:09:49 +0600
commit4473edae02ac841b1eb54810f94d3b6886dd0194 (patch)
treecbbf27533ef4657d38d9a89c9c4ef60980f381c2 /tox.ini
parent3e78169def352792ace04317096208fb782fc348 (diff)
downloadpystatsd-4473edae02ac841b1eb54810f94d3b6886dd0194.tar.gz
Python 3.2 and 2.5 support; tox test running.
socket.send expects bytes in Python 3 (while python 2 doesn't care) and it looks like statsd server implementations doesn't support non-ascii data so the data is forced to ascii. I don't care much about python 2.5 but its support was only single __future__ import away so it was added. Travis CI is great but tox is better for TDD because tests can be run locally without commiting so tox.ini was added. Version management was simplified (more KISS, less DRY) because importing packages in setup.py causes headaches.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini11
1 files changed, 11 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..0da2d05
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,11 @@
+[tox]
+envlist = py25,py26,py27,pypy,py32
+
+[testenv]
+deps=
+ mock==0.8
+ nose
+ coverage
+
+commands=
+ nosetests statsd --with-coverage --cover-package=statsd []