<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 = py27, pypy, precise, trunk, py33

[testenv]
deps =
    -rrequirements.txt
    # Extras
    boto
    Pillow
    django
    # Only required to run tests
    mock
    mitmproxy
commands =
    trial scrapy

[testenv:precise]
basepython = python2.7
deps =
    pyOpenSSL==0.13
    lxml==2.3.2
    twisted==11.1.0
    boto==2.2.2
    Pillow<2.0
    django==1.3.1
    cssselect==0.9.1
    mock==1.0.1
    mitmproxy==0.9.2

[testenv:trunk]
basepython = python2.7
commands =
    pip install https://github.com/scrapy/w3lib/archive/master.zip#egg=w3lib
    pip install https://github.com/scrapy/queuelib/archive/master.zip#egg=queuelib
    trial scrapy

[testenv:py33]
basepython = python3.3
deps =
    Twisted>=13.2.0
    lxml>=3.2.4
    pyOpenSSL>=0.13.1
    cssselect>=0.9
    queuelib>=1.1.1
    w3lib>=1.5
    # Only required to run tests
    mock>=1.0.1
    mitmproxy>=0.9.2
commands =
    trial scrapy

[testenv:windows]
commands =
    bin/runtests.bat []
sitepackages = False<commit_msg>allow running individual tests via tox, e.g. «tox -e trunk -- scrapy.tests.test_spider»<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 = py27, pypy, precise, trunk, py33

[testenv]
deps =
    -rrequirements.txt
    # Extras
    boto
    Pillow
    django
    # Only required to run tests
    mock
    mitmproxy
commands =
    trial {posargs:scrapy}

[testenv:precise]
basepython = python2.7
deps =
    pyOpenSSL==0.13
    lxml==2.3.2
    twisted==11.1.0
    boto==2.2.2
    Pillow<2.0
    django==1.3.1
    cssselect==0.9.1
    mock==1.0.1
    mitmproxy==0.9.2

[testenv:trunk]
basepython = python2.7
commands =
    pip install https://github.com/scrapy/w3lib/archive/master.zip#egg=w3lib
    pip install https://github.com/scrapy/queuelib/archive/master.zip#egg=queuelib
    trial {posargs:scrapy}

[testenv:py33]
basepython = python3.3
deps =
    Twisted>=13.2.0
    lxml>=3.2.4
    pyOpenSSL>=0.13.1
    cssselect>=0.9
    queuelib>=1.1.1
    w3lib>=1.5
    # Only required to run tests
    mock>=1.0.1
    mitmproxy>=0.9.2
commands =
    trial {posargs:scrapy}

[testenv:windows]
commands =
    bin/runtests.bat []
sitepackages = False
{'fraction_non_alphanumeric': 0.12328244274809161, 'fraction_numerical': 0.050381679389312976, 'mean_word_length': 2.9177877428998507, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '5535192', 'n_tokens_mistral': 1043, 'n_tokens_neox': 1013, 'n_words': 236}