
Add a new environment that will install the latest development version of requests. This lets you check for anything new coming down that might bite us in upcoming releases. Change-Id: I3dfaf79c681c5c4075b387947d797285c011cb88
82 lines
2.2 KiB
INI
82 lines
2.2 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+https://git.openstack.org/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+https://git.openstack.org/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
|
|
|
|
[testenv:requests-tip]
|
|
deps =
|
|
six
|
|
-egit+https://github.com/kennethreitz/requests.git#egg=requests
|
|
-r{toxinidir}/test-requirements.txt
|