argon2-cffi-bindings/tox.ini
Hynek Schlawack 900ce08474
Simplify CI definition (#111)
* Simplify CI definition

Courtesy of modern tox.

* Add Python 3.15 to CI
2026-02-21 14:25:22 +01:00

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