1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
[tox]
envlist =
py{38,39,310,311,312}
pypy
pypy3
pep8
typing
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/requests-mock
commands =
pytest tests/pytest
python -m testtools.run {posargs:discover}
deps =
-r{toxinidir}/test-requirements.txt
[testenv:pep8]
commands = flake8 requests_mock tests
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:oldest-requirements]
install_command = pip install -U {opts} -c {toxinidir}/.tox.oldest.txt {packages}
commands =
python -m testtools.run {posargs:discover}
deps =
-r{toxinidir}/test-requirements.txt
-c{toxinidir}/.tox.oldest.txt
pbr
[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:docs]
commands = python setup.py build_sphinx
deps =
-r{toxinidir}/rtfd-requirements.txt
{[testenv]deps}
[testenv:requests-tip]
deps =
-e "git+https://github.com/kennethreitz/requests.git\#egg=requests"
-r{toxinidir}/test-requirements.txt
[testenv:typing]
commands = mypy requests_mock
deps =
-r{toxinidir}/typing-requirements.txt
|