requests-mock/tox.ini
Jamie Lennox 3c4f1527e5 Add pbr to all tox environments
Doc builds are failing, apparently it's fixed by having pbr installed.
PBR really should be installed in all tox environments so just put it in
the main tox deps.

Change-Id: Iffc9a343d2953800a0afb4a92a5a6835e868994d
2014-12-02 10:01:18 +10:00

76 lines
2.1 KiB
INI

[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