Skip to content

Instantly share code, notes, and snippets.

@PiDelport
Created August 16, 2012 23:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PiDelport/3374507 to your computer and use it in GitHub Desktop.
Save PiDelport/3374507 to your computer and use it in GitHub Desktop.
Baseline Tox config for supported versions of Python and Django.
# See http://tox.testrun.org/
#
# Supported Python 2.* environments: py{26,27,py}-dj{13,14,dev}
# Supported Python 3.* environments: py{31,32}-djdev
[tox]
minversion = 1.4
envlist = py27-dj14
# envlist =
# py26-dj13, py26-dj14, py26-djdev,
# py27-dj13, py27-dj14, py27-djdev,
# pypy-dj13, pypy-dj14, pypy-djdev,
# py31-djdev,
# py32-djdev,
[testenv]
deps =
...
changedir = {toxworkdir}
setenv =
...
commands =
...
# Python 2.6
[testenv:py26-dj13]
basepython = python2.6
deps =
{[testenv]deps}
Django>=1.3,<1.4
[testenv:py26-dj14]
basepython = python2.6
deps =
{[testenv]deps}
Django>=1.4,<1.5
[testenv:py26-djdev]
basepython = python2.6
deps =
{[testenv]deps}
https://github.com/django/django/tarball/master
# Python 2.7
[testenv:py27-dj13]
basepython = python2.7
deps =
{[testenv]deps}
Django>=1.3,<1.4
[testenv:py27-dj14]
basepython = python2.7
deps =
{[testenv]deps}
Django>=1.4,<1.5
[testenv:py27-djdev]
basepython = python2.7
deps =
{[testenv]deps}
https://github.com/django/django/tarball/master
# PyPy
[testenv:pypy-dj13]
basepython = pypy
deps =
{[testenv]deps}
Django>=1.3,<1.4
[testenv:pypy-dj14]
basepython = pypy
deps =
{[testenv]deps}
Django>=1.4,<1.5
[testenv:pypy-djdev]
basepython = pypy
deps =
{[testenv]deps}
https://github.com/django/django/tarball/master
# Python 3.*
[testenv:py31-djdev]
basepython = python3.1
deps =
{[testenv]deps}
https://github.com/django/django/tarball/master
[testenv:py32-djdev]
basepython = python3.2
deps =
{[testenv]deps}
https://github.com/django/django/tarball/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment