From df0635998687d16c853f85bb166c1868721c84b5 Mon Sep 17 00:00:00 2001 From: NotSqrt Date: Thu, 30 Oct 2014 19:31:32 +0100 Subject: [PATCH] test locally with tox, add explicit classifiers for python 3, so that caniusepython3.com can declare that this is valid --- .gitignore | 1 + setup.py | 4 ++++ tox.ini | 10 ++++++++++ 3 files changed, 15 insertions(+) create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore index e4585d0..08c1ece 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ build .DS_Store tests_tmp *.egg +*.tox diff --git a/setup.py b/setup.py index b5e9d40..1952adf 100644 --- a/setup.py +++ b/setup.py @@ -41,7 +41,11 @@ test_suite='tests', classifiers=[ 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.6', + 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Intended Audience :: Developers', diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..bcc2c19 --- /dev/null +++ b/tox.ini @@ -0,0 +1,10 @@ +# Tox (http://codespeak.net/~hpk/tox/) 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, "pip install tox" +# and then run "tox" from this directory. + +[tox] +envlist = py26, py27, py33, py34 + +[testenv] +commands = python setup.py test