mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Run tests for Django 5.0 and 5.1 Run tests for Python 3.12 Add support for Django 5.1 Drop support for Django 3.2
63 lines
1.3 KiB
TOML
63 lines
1.3 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=30.3.0", "wheel", "setuptools_scm"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = "tests"
|
|
addopts = "--cov axes --cov-append --cov-branch --cov-report term-missing --cov-report=xml"
|
|
DJANGO_SETTINGS_MODULE = "tests.settings"
|
|
|
|
[tool.tox]
|
|
legacy_tox_ini = """
|
|
[tox]
|
|
envlist =
|
|
py{38,39,310,311,312,py310}-dj42
|
|
py{310,311,312,py310}-dj50
|
|
py{310,311,312,py310}-dj51
|
|
py311-djmain
|
|
py311-djqa
|
|
|
|
[gh-actions]
|
|
python =
|
|
3.8: py38
|
|
3.9: py39
|
|
3.10: py310
|
|
3.11: py311
|
|
3.12: py312
|
|
pypy-3.10: pypy310
|
|
|
|
[gh-actions:env]
|
|
DJANGO =
|
|
4.2: dj42
|
|
5.0: dj50
|
|
5.1: dj51
|
|
main: djmain
|
|
qa: djqa
|
|
|
|
# Normal test environment runs pytest which orchestrates other tools
|
|
[testenv]
|
|
deps =
|
|
-r requirements-test.txt
|
|
dj32: django>=3.2,<3.3
|
|
dj42: django>=4.1,<4.2
|
|
dj50: django>=5.0,<5.1
|
|
djmain: https://github.com/django/django/archive/main.tar.gz
|
|
usedevelop = true
|
|
commands = pytest
|
|
setenv =
|
|
PYTHONDONTWRITEBYTECODE=1
|
|
# Django development version is allowed to fail the test matrix
|
|
ignore_outcome =
|
|
djmain: True
|
|
pypy310: True
|
|
ignore_errors =
|
|
djmain: True
|
|
pypy310: True
|
|
|
|
# QA runs type checks, linting, and code formatting checks
|
|
[testenv:py312-djqa]
|
|
deps = -r requirements-qa.txt
|
|
commands =
|
|
mypy axes
|
|
prospector
|
|
black -t py38 --check --diff axes
|
|
"""
|