<commit_before>[tox]
envlist = py26, py27, py33,py34, pypy, pep8

[testenv]
setenv =
    PYTHONPATH = {toxinidir}:{toxinidir}/requests-mock
commands = python setup.py testr
deps =
    -r{toxinidir}/requirements.txt
    -r{toxinidir}/test-requirements.txt

[testenv:pep8]
commands = flake8 requests_mock
deps =
    flake8
    {[testenv]deps}

[testenv:venv]
commands = {posargs}

[testenv:coverage]
commands =
    coverage erase
    coverage run --source requests_mock -m testtools.run discover
    coverage html
deps =
    coverage
    {[testenv]deps}

[testenv:requests123]
commands =
    {envbindir}/pip install "requests==1.2.3"
    python setup.py testr --testr-args='{posargs}'

[testenv:doctest]
# note this only works under python 3 because of unicode literals
commands =
    python -m doctest README.rst

[testenv:sphinx-doctest]
# note this only works under python 3 because of unicode literals
commands =
    mkdir build/sphinx/doctest
    sphinx-build -b doctest docs build/sphinx/doctest
deps =
    pbr
    {[testenv]deps}

[testenv:keystoneclient-tip]
deps =
    six
    -r{toxinidir}/test-requirements.txt
    -egit+http://git.openstack.org/cgit/openstack/python-keystoneclient#egg=python-keystoneclient
    -egit+https://github.com/kennethreitz/requests.git#egg=requests
changedir = {envdir}/src/python-keystoneclient
commands =
    {envbindir}/pip install -r requirements.txt -r test-requirements.txt
    {envbindir}/pip install pbr -t {envsitepackagesdir} # work around pbr being build installed in {toxinidir}
    python setup.py testr --testr-args='{posargs}'

[testenv:novaclient-tip]
deps =
    six
    -r{toxinidir}/test-requirements.txt
    -egit+http://git.openstack.org/cgit/openstack/python-novaclient#egg=python-novaclient
    -egit+https://github.com/kennethreitz/requests.git#egg=requests
changedir = {envdir}/src/python-novaclient
commands =
    {envbindir}/pip install -r requirements.txt -r test-requirements.txt
    {envbindir}/pip install pbr -t {envsitepackagesdir} # work around pbr being build installed in {toxinidir}
    python setup.py testr --testr-args='{posargs}'

[testenv:docs]
commands = python setup.py build_sphinx
    <commit_msg>Add pbr to all tox environments<commit_after>[tox]
envlist = py26, py27, py33,py34, pypy, pep8

[testenv]
setenv =
    PYTHONPATH = {toxinidir}:{toxinidir}/requests-mock
commands = python setup.py testr
deps =
    -r{toxinidir}/requirements.txt
    -r{toxinidir}/test-requirements.txt
    pbr

[testenv:pep8]
commands = flake8 requests_mock
deps =
    flake8
    {[testenv]deps}

[testenv:venv]
commands = {posargs}

[testenv:coverage]
commands =
    coverage erase
    coverage run --source requests_mock -m testtools.run discover
    coverage html
deps =
    coverage
    {[testenv]deps}

[testenv:requests123]
commands =
    {envbindir}/pip install "requests==1.2.3"
    python setup.py testr --testr-args='{posargs}'

[testenv:doctest]
# note this only works under python 3 because of unicode literals
commands =
    python -m doctest README.rst

[testenv:sphinx-doctest]
# note this only works under python 3 because of unicode literals
commands =
    mkdir build/sphinx/doctest
    sphinx-build -b doctest docs build/sphinx/doctest
deps =
    pbr
    {[testenv]deps}

[testenv:keystoneclient-tip]
deps =
    six
    -r{toxinidir}/test-requirements.txt
    -egit+http://git.openstack.org/cgit/openstack/python-keystoneclient#egg=python-keystoneclient
    -egit+https://github.com/kennethreitz/requests.git#egg=requests
changedir = {envdir}/src/python-keystoneclient
commands =
    {envbindir}/pip install -r requirements.txt -r test-requirements.txt
    {envbindir}/pip install pbr -t {envsitepackagesdir} # work around pbr being build installed in {toxinidir}
    python setup.py testr --testr-args='{posargs}'

[testenv:novaclient-tip]
deps =
    six
    -r{toxinidir}/test-requirements.txt
    -egit+http://git.openstack.org/cgit/openstack/python-novaclient#egg=python-novaclient
    -egit+https://github.com/kennethreitz/requests.git#egg=requests
changedir = {envdir}/src/python-novaclient
commands =
    {envbindir}/pip install -r requirements.txt -r test-requirements.txt
    {envbindir}/pip install pbr -t {envsitepackagesdir} # work around pbr being build installed in {toxinidir}
    python setup.py testr --testr-args='{posargs}'

[testenv:docs]
commands = python setup.py build_sphinx
{'fraction_non_alphanumeric': 0.11555149577529117, 'fraction_numerical': 0.009134505594884677, 'mean_word_length': 4.0577367205542725, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '1124702', 'n_tokens_mistral': 1644, 'n_tokens_neox': 1576, 'n_words': 330}