# Tox configuration file
# ======================
#
# Tox (https://tox.readthedocs.io/) 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]
# py32 not supported by tox and pytest
envlist = py27,py34,py35,py36,pypy,docs

[testenv]
commands = pytest --cov-report term-missing --cov=deprecated tests/
deps =
    pytest < 3.3, >= 3.2
    pytest-cov < 2.6, >= 2.5

[testenv:docs]
basepython = python
deps = sphinx < 1.7, >= 1.6
commands =
    sphinx-build -b html  -d {envtmpdir}/doctrees docs/source/ {envtmpdir}/html
    sphinx-build -b epub2 -d {envtmpdir}/doctrees docs/source/ {envtmpdir}/epub

# Tox configuration file
# ======================
#
# Tox (https://tox.readthedocs.io/) 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]
# py32 not supported by tox and pytest
envlist = py27,py34,py35,py36,pypy,docs

[testenv]
commands = pytest --cov-report term-missing --cov=deprecated tests/
deps =
    pytest < 3.3, >= 3.2
    pytest-cov < 2.6, >= 2.5

[testenv:docs]
basepython = python
deps =
    sphinx < 1.7, >= 1.6
    requests[security] < 2.19, >= 2.18
commands =
    sphinx-build -b html  -d {envtmpdir}/doctrees docs/source/ {envtmpdir}/html
    sphinx-build -b epub2 -d {envtmpdir}/doctrees docs/source/ {envtmpdir}/epub

Add Server Name Indication (SNI) support to avoid warnings during Sphinx documentation generation (Python < 2.7.9).
Add Server Name Indication (SNI) support to avoid warnings during Sphinx documentation generation (Python < 2.7.9).
