<commit_before>[tox]
downloadcache = {toxworkdir}/cache/
envlist =
    py26,
    py26-grappelli,
    py26-django12,
    py26-django13,
    py26-django14,
    py26-django15,
    py27,
    py27-grappelli,
    py27-django12,
    py27-django13,
    py27-django14,
    py27-django15,
    py27-django16,
    py27-django17,
    py33-django15,
    py33-django16,
    py33-django17,
    custom-user-model,
    no-tests-app,
    migrations,
    docs27,
    docs33,
    flakes,


[testenv]
commands = python setup.py test
deps =
    django==1.5.5
    mock>=0.7.2

[testenv:mysql]
setenv =
    GUARDIAN_TEST_DB_BACKEND=mysql
deps =
    django==1.6.2
    MySQL-python==1.2.3

[testenv:postgresql]
basepython = python2.7
setenv =
    GUARDIAN_TEST_DB_BACKEND=postgresql
deps =
    django==1.6.2
    psycopg2==2.4.1
# psycopg2==2.4.2 has troubles with test runner, see: https://code.djangoproject.com/ticket/16250

[django12]
deps = django==1.2.7

[django13]
deps = django==1.3.7

[django14]
deps = django==1.4.10

[django15]
deps = django==1.5.5

[django16]
deps = django==1.6.2

[django17]
deps = https://www.djangoproject.com/m/releases/1.7/Django-1.7a2.tar.gz


[testenv:py26-grappelli]
basepython = python2.6
deps =
    {[django13]deps}
    django-grappelli==2.3.5

[testenv:py26-django12]
basepython = python2.6
deps = {[django12]deps}

[testenv:py26-django13]
basepython = python2.6
deps = {[django13]deps}

[testenv:py26-django14]
basepython = python2.6
deps = {[django14]deps}

[testenv:py26-django15]
basepython = python2.6
deps = {[django15]deps}

[testenv:py27-grappelli]
basepython = python2.7
deps =
    {[django13]deps}
    django-grappelli==2.3.5

[testenv:py27-django12]
basepython = python2.7
deps = {[django12]deps}

[testenv:py27-django13]
basepython = python2.7
deps = {[django13]deps}

[testenv:py27-django14]
basepython = python2.7
deps = {[django14]deps}

[testenv:py27-django15]
basepython = python2.7
deps = {[django15]deps}

[testenv:py27-django16]
basepython = python2.7
deps = {[django16]deps}

[testenv:py27-django17]
basepython = python2.7
deps = {[django17]deps}

[testenv:py33-django15]
basepython = python3.3
deps = {[django15]deps}

[testenv:py33-django16]
basepython = python3.3
deps = {[django16]deps}

[testenv:py33-django17]
basepython = python3.3
deps = {[django17]deps}

[testenv:custom-user-model]
basepython = python3.3
deps = {[django16]deps}
changedir = example_project
commands =
    {envpython} manage.py test guardian integration_tests --traceback

[testenv:no-tests-app]
basepython = python3.3
deps = {[django16]deps}
changedir = example_project
setenv =
    GUARDIAN_NO_TESTS_APP=yes
commands =
    {envpython} manage.py test guardian

[testenv:migrations]
setenv =<commit_msg>Updated tox config<commit_after>[tox]
downloadcache = {toxworkdir}/cache/
envlist =
    py26,
    py26-grappelli,
    py26-django12,
    py26-django13,
    py26-django14,
    py26-django15,
    py27,
    py27-grappelli,
    py27-django12,
    py27-django13,
    py27-django14,
    py27-django15,
    py27-django16,
    py27-django17,
    py33-django15,
    py33-django16,
    py33-django17,
    py34-django16,
    py34-django17,
    custom-user-model,
    no-tests-app,
    migrations,
    docs27,
    docs33,
    flakes,


[testenv]
commands = python setup.py test
deps =
    django==1.5.5
    mock>=0.7.2

[testenv:mysql]
setenv =
    GUARDIAN_TEST_DB_BACKEND=mysql
deps =
    django==1.6.2
    MySQL-python==1.2.3

[testenv:postgresql]
basepython = python2.7
setenv =
    GUARDIAN_TEST_DB_BACKEND=postgresql
deps =
    django==1.6.2
    psycopg2==2.4.1
# psycopg2==2.4.2 has troubles with test runner, see: https://code.djangoproject.com/ticket/16250

[django12]
deps = django==1.2.7

[django13]
deps = django==1.3.7

[django14]
deps = django==1.4.10

[django15]
deps = django==1.5.5

[django16]
deps = django==1.6.2

[django17]
deps = django==1.7.1


[testenv:py26-grappelli]
basepython = python2.6
deps =
    {[django13]deps}
    django-grappelli==2.3.5

[testenv:py26-django12]
basepython = python2.6
deps = {[django12]deps}

[testenv:py26-django13]
basepython = python2.6
deps = {[django13]deps}

[testenv:py26-django14]
basepython = python2.6
deps = {[django14]deps}

[testenv:py26-django15]
basepython = python2.6
deps = {[django15]deps}

[testenv:py27-grappelli]
basepython = python2.7
deps =
    {[django13]deps}
    django-grappelli==2.3.5

[testenv:py27-django12]
basepython = python2.7
deps = {[django12]deps}

[testenv:py27-django13]
basepython = python2.7
deps = {[django13]deps}

[testenv:py27-django14]
basepython = python2.7
deps = {[django14]deps}

[testenv:py27-django15]
basepython = python2.7
deps = {[django15]deps}

[testenv:py27-django16]
basepython = python2.7
deps = {[django16]deps}

[testenv:py27-django17]
basepython = python2.7
deps = {[django17]deps}

[testenv:py33-django15]
basepython = python3.3
deps = {[django15]deps}

[testenv:py33-django16]
basepython = python3.3
deps = {[django16]deps}

[testenv:py33-django17]
basepython = python3.3
deps = {[django17]deps}

[testenv:py34-django16]
basepython = python3.4
deps = {[django16]deps}

[testenv:py34-django17]
basepython = python3.4
deps = {[django17]deps}

[testenv:custom-user-model]
basepython = python3.4
deps = {[django16]deps}
changedir = example_project
commands =
    {envpython} manage.py test guardian integration_tests --traceback

[testenv:no-tests-app]
basepython = python3.4
deps = {[django16]deps}
changedir = example_project
setenv =
    GUARDIAN_NO_TESTS_APP=yes
commands =
    {envpython} manage.py test guardian

[testenv:migrations]
setenv =
{'fraction_non_alphanumeric': 0.13956834532374102, 'fraction_numerical': 0.09640287769784173, 'mean_word_length': 4.120626151012892, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2777937', 'n_tokens_mistral': 2600, 'n_tokens_neox': 2376, 'n_words': 378}