51 lines
1.1 KiB
INI
51 lines
1.1 KiB
INI
[tox]
|
|
min_version = 4.25
|
|
env_list =
|
|
pre-commit,
|
|
cog-{check,render},
|
|
3.{9-15},
|
|
3.1{4-5}t,
|
|
pypy3.{9-11},
|
|
system-argon2
|
|
|
|
|
|
[testenv:pre-commit]
|
|
description = Run all pre-commit hooks.
|
|
skip_install = true
|
|
deps = pre-commit
|
|
commands = pre-commit run --all-files
|
|
|
|
|
|
[testenv:cog-render]
|
|
description = Update README and CHANGELOG
|
|
skip_install = true
|
|
deps = cogapp>=3.3.0
|
|
commands = cog -rP README.md CHANGELOG.md
|
|
|
|
|
|
[testenv:cog-check]
|
|
description = Ensure README and CHANGELOG are up-to-date
|
|
skip_install = true
|
|
deps = {[testenv:cog-render]deps}
|
|
commands = cog --check -P README.md CHANGELOG.md
|
|
|
|
|
|
[testenv]
|
|
description = Run tests.
|
|
dependency_groups = tests
|
|
commands = pytest {posargs}
|
|
|
|
|
|
[testenv:system-argon2]
|
|
description = Run tests against bindings that use a system installation of Argon2.
|
|
set_env = ARGON2_CFFI_USE_SYSTEM=1
|
|
dependency_groups = tests
|
|
install_command = pip install {opts} --no-binary=argon2-cffi-bindings {packages}
|
|
|
|
|
|
[testenv:clean]
|
|
description = Remove build artifacts.
|
|
allowlist_externals = rm
|
|
skip_install = true
|
|
commands = rm -rf .tox build src/argon2_cffi_bindings.egg-info
|