<commit_before># 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, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = flake8, py26, py27, py32, py33, py34, pypy

[testenv]
passenv = *
commands = nosetests --with-coverage --cover-package=premailer
install_command =
  pip install {opts} {packages}

deps =
    setuptools
    nose
    mock
    cssselect
    cssutils
    lxml
    coverage

[testenv:flake8]
deps = flake8
commands = flake8 premailer

[testenv:py32]
# Python 3.2 does not support coverage 4.x
commands = nosetests --with-coverage --cover-package=premailer
install_command =
  pip install {opts} {packages}

deps =
    setuptools
    nose
    mock
    cssselect
    cssutils
    lxml
    coverage==3.7.1

[testenv:py26]
# Python 2.6 is missing both the ordereddict and argparse modules
# from the standard library.
commands = nosetests --with-coverage --cover-package=premailer
install_command =
  pip install {opts} {packages}

deps =
    setuptools
    nose
    mock
    cssselect
    cssutils
    lxml
    ordereddict
    argparse
    coverage<commit_msg>tox test pypy with lxml==3.4.4<commit_after># 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, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = flake8, py26, py27, py32, py33, py34, pypy

[testenv]
passenv = *
commands = nosetests --with-coverage --cover-package=premailer
install_command =
  pip install {opts} {packages}

deps =
    setuptools
    nose
    mock
    cssselect
    cssutils
    lxml
    coverage

[testenv:flake8]
deps = flake8
commands = flake8 premailer

[testenv:py32]
# Python 3.2 does not support coverage 4.x
commands = nosetests --with-coverage --cover-package=premailer
install_command =
  pip install {opts} {packages}

deps =
    setuptools
    nose
    mock
    cssselect
    cssutils
    lxml
    coverage==3.7.1

[testenv:py26]
# Python 2.6 is missing both the ordereddict and argparse modules
# from the standard library.
commands = nosetests --with-coverage --cover-package=premailer
install_command =
  pip install {opts} {packages}

deps =
    setuptools
    nose
    mock
    cssselect
    cssutils
    lxml
    ordereddict
    argparse
    coverage


[testenv:pypy]
# pypy can't be built with >3.4.4 so, in tox we pin back to the last
# known good version of lxml
deps =
    setuptools
    nose
    mock
    cssselect
    cssutils
    lxml==3.4.4
    coverage
{'fraction_non_alphanumeric': 0.08171641791044776, 'fraction_numerical': 0.022761194029850745, 'mean_word_length': 3.130970724191063, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 9}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '26946', 'n_tokens_mistral': 940, 'n_tokens_neox': 906, 'n_words': 294}