<commit_before>[tox]
envlist = py3,py27,{py3,py27}-{newton,ocata,pike,queens,master},pep8
minversion = 2.0
skipsdist = True

[testenv]
# Note the hash seed is set to 0 until neutron can be tested with a
# random hash seed successfully.
setenv = VIRTUAL_ENV={envdir}
         PYTHONHASHSEED=0
         PYTHONWARNINGS=default::DeprecationWarning
passenv = TRACE_FAILONLY http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY OS_DEBUG
usedevelop = True
install_command =
    pip install {opts} {packages}
deps =
    newton: -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/newton}
    ocata: -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/ocata}
    pike: -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/pike}
    queens: -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/queens}

    newton: http://tarballs.openstack.org/neutron/neutron-9.4.1-py2.py3-none-any.whl
    ocata: http://tarballs.openstack.org/neutron/neutron-10.0.5-py2.py3-none-any.whl
    pike: http://tarballs.openstack.org/neutron/neutron-11.0.2-py2.py3-none-any.whl
    queens: neutron>=12.0.0,<13.0.0

    -r{toxinidir}/requirements.txt
    -r{toxinidir}/test-requirements.txt
whitelist_externals = sh
# There is secret magic in ostestr which lets you run in a fail only
# mode. To do this define the TRACE_FAILONLY environmental variable.
commands = ostestr {posargs}


[testenv:py27]
deps =
    -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=mitaka-eol}
    http://tarballs.openstack.org/neutron/neutron-8.4.0-py2.py3-none-any.whl
    -r{toxinidir}/requirements.txt
    -r{toxinidir}/test-requirements.txt
[testenv:py3]
deps = {[testenv:py27]deps}
[testenv:py34]
deps = {[testenv:py27]deps}
[testenv:py35]
deps = {[testenv:py27]deps}


[testenv:hashtest]
# This is the same as default environment, but with a random PYTHONHASHSEED.
# You can also specify a specific hashseed (for test repeatability) as follows:
#   tox --hashseed 1235130571 -e hashtest
setenv = VIRTUAL_ENV={envdir}<commit_msg>Switch to using neutron Pike from pypi<commit_after>[tox]
envlist = py3,py27,{py3,py27}-{newton,ocata,pike,queens,master},pep8
minversion = 2.0
skipsdist = True

[testenv]
# Note the hash seed is set to 0 until neutron can be tested with a
# random hash seed successfully.
setenv = VIRTUAL_ENV={envdir}
         PYTHONHASHSEED=0
         PYTHONWARNINGS=default::DeprecationWarning
passenv = TRACE_FAILONLY http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY OS_DEBUG
usedevelop = True
install_command =
    pip install {opts} {packages}
deps =
    newton: -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/newton}
    ocata: -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/ocata}
    pike: -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/pike}
    queens: -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/queens}

    newton: http://tarballs.openstack.org/neutron/neutron-9.4.1-py2.py3-none-any.whl
    ocata: http://tarballs.openstack.org/neutron/neutron-10.0.5-py2.py3-none-any.whl
    pike: neutron>=11.0.0,<12.0.0
    queens: neutron>=12.0.0,<13.0.0

    -r{toxinidir}/requirements.txt
    -r{toxinidir}/test-requirements.txt
whitelist_externals = sh
# There is secret magic in ostestr which lets you run in a fail only
# mode. To do this define the TRACE_FAILONLY environmental variable.
commands = ostestr {posargs}


[testenv:py27]
deps =
    -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=mitaka-eol}
    http://tarballs.openstack.org/neutron/neutron-8.4.0-py2.py3-none-any.whl
    -r{toxinidir}/requirements.txt
    -r{toxinidir}/test-requirements.txt
[testenv:py3]
deps = {[testenv:py27]deps}
[testenv:py34]
deps = {[testenv:py27]deps}
[testenv:py35]
deps = {[testenv:py27]deps}


[testenv:hashtest]
# This is the same as default environment, but with a random PYTHONHASHSEED.
# You can also specify a specific hashseed (for test repeatability) as follows:
#   tox --hashseed 1235130571 -e hashtest
setenv = VIRTUAL_ENV={envdir}
{'fraction_non_alphanumeric': 0.12702178132413197, 'fraction_numerical': 0.028035367694630147, 'mean_word_length': 4.86346396965866, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 10, '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': '6896465', 'n_tokens_mistral': 1888, 'n_tokens_neox': 1797, 'n_words': 287}