Codebase list python-webargs / upstream/8.2.0 tox.ini
upstream/8.2.0

Tree @upstream/8.2.0 (Download .tar.gz)

tox.ini @upstream/8.2.0

82d124c
ded24e4
 
5ea3ea6
 
 
ded24e4
 
82d124c
ded24e4
 
b585908
cdefc4f
5ea3ea6
 
 
 
 
 
 
 
 
 
 
 
 
 
b585908
 
 
 
 
 
 
ded24e4
 
b585908
5d50e68
 
ded24e4
b585908
 
 
 
5ea3ea6
 
b585908
 
ded24e4
cdefc4f
ded24e4
 
 
 
 
 
 
cdefc4f
b585908
ded24e4
 
 
 
 
[tox]
envlist=
    lint
    py{37,38,39,310}
    py37-mindeps
    py310-marshmallowdev
    docs

[testenv]
extras = tests
deps =
    !marshmallowdev: marshmallow>=3.0.0,<4.0.0
    marshmallowdev: https://github.com/marshmallow-code/marshmallow/archive/dev.tar.gz

# for 'mindeps', pin flask to 1.1.3 and markupsafe to 1.1.1
# because flask 1.x does not set upper bounds on the versions of its dependencies
# generally, we can't install just any version from 1.x -- only 1.1.3 and 1.1.4
# markupsafe is a second-order dependency of flask (flask -> jinja2 -> markupsafe)
# and must be pinned explicitly because jinja2 does not pin its dependencies in any
# versions in its 2.x line
# see:
#   https://github.com/marshmallow-code/webargs/pull/694
#   https://github.com/pallets/flask/pull/4047
#   https://github.com/pallets/flask/issues/4455
    mindeps: flask==1.1.3
    mindeps: markupsafe==1.1.1
# all non-flask frameworks
    mindeps: Django==2.2.0
    mindeps: bottle==0.12.13
    mindeps: tornado==4.5.2
    mindeps: pyramid==1.9.1
    mindeps: falcon==2.0.0
    mindeps: aiohttp==3.0.8
commands = pytest {posargs}

[testenv:lint]
deps = pre-commit~=2.4
skip_install = true
commands = pre-commit run --all-files

# a separate `mypy` target which runs `mypy` in an environment with
# `webargs` and `marshmallow` both installed is a valuable safeguard against
# issues in which `mypy` running on every file standalone won't catch things
[testenv:mypy]
deps = mypy==0.930
extras = frameworks
commands = mypy src/

[testenv:docs]
extras = docs
commands = sphinx-build docs/ docs/_build {posargs}

; Below tasks are for development only (not run in CI)

[testenv:watch-docs]
deps =
  sphinx-autobuild
extras = docs
commands = sphinx-autobuild --open-browser docs/ docs/_build {posargs} --watch src/webargs --delay 2

[testenv:watch-readme]
deps = restview
skip_install = true
commands = restview README.rst