2019-08-28 10:28:57 +00:00
|
|
|
[build-system]
|
|
|
|
|
requires = ["setuptools>=30.3.0", "wheel", "setuptools_scm"]
|
2021-01-07 16:11:59 +00:00
|
|
|
|
|
|
|
|
[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 =
|
2025-12-19 19:07:12 +00:00
|
|
|
py{310,311,312}-dj42
|
2025-04-11 13:36:35 +00:00
|
|
|
py{310,311,312,313}-dj52
|
2025-12-19 19:07:12 +00:00
|
|
|
py{312,313,314}-dj60
|
2026-02-11 19:40:17 +00:00
|
|
|
py314-djmain
|
|
|
|
|
py314-djqa
|
2021-01-07 16:11:59 +00:00
|
|
|
|
|
|
|
|
[gh-actions]
|
|
|
|
|
python =
|
2021-11-01 14:38:09 +00:00
|
|
|
3.10: py310
|
2022-10-27 18:24:52 +00:00
|
|
|
3.11: py311
|
2024-03-04 18:13:49 +00:00
|
|
|
3.12: py312
|
2024-12-02 16:16:01 +00:00
|
|
|
3.13: py313
|
2025-12-19 19:07:12 +00:00
|
|
|
3.14: py314
|
2021-01-07 16:11:59 +00:00
|
|
|
|
|
|
|
|
[gh-actions:env]
|
|
|
|
|
DJANGO =
|
2023-04-28 09:29:36 +00:00
|
|
|
4.2: dj42
|
2025-04-11 13:36:35 +00:00
|
|
|
5.2: dj52
|
2025-12-19 19:07:12 +00:00
|
|
|
6.0: dj60
|
2021-03-09 11:40:04 +00:00
|
|
|
main: djmain
|
2021-01-07 16:11:59 +00:00
|
|
|
qa: djqa
|
|
|
|
|
|
|
|
|
|
# Normal test environment runs pytest which orchestrates other tools
|
|
|
|
|
[testenv]
|
|
|
|
|
deps =
|
2025-12-19 19:54:43 +00:00
|
|
|
-r requirements.txt
|
2026-02-11 19:40:17 +00:00
|
|
|
dj42: django>=4.2,<4.3
|
|
|
|
|
dj52: django>=5.2,<5.3
|
|
|
|
|
dj60: django>=6.0,<6.1
|
2021-03-09 11:40:04 +00:00
|
|
|
djmain: https://github.com/django/django/archive/main.tar.gz
|
2021-01-07 16:11:59 +00:00
|
|
|
usedevelop = true
|
|
|
|
|
commands = pytest
|
|
|
|
|
setenv =
|
|
|
|
|
PYTHONDONTWRITEBYTECODE=1
|
|
|
|
|
# Django development version is allowed to fail the test matrix
|
2022-01-08 17:51:59 +00:00
|
|
|
ignore_outcome =
|
|
|
|
|
djmain: True
|
|
|
|
|
ignore_errors =
|
|
|
|
|
djmain: True
|
2021-01-07 16:11:59 +00:00
|
|
|
|
|
|
|
|
# QA runs type checks, linting, and code formatting checks
|
2026-02-11 19:40:17 +00:00
|
|
|
[testenv:py314-djqa]
|
2026-02-11 20:09:16 +00:00
|
|
|
stoponfail = false
|
2025-12-19 19:54:43 +00:00
|
|
|
deps = -r requirements.txt
|
2021-01-07 16:11:59 +00:00
|
|
|
commands =
|
|
|
|
|
mypy axes
|
2026-02-11 20:06:59 +00:00
|
|
|
prospector axes
|
2026-02-11 20:07:28 +00:00
|
|
|
black --check --diff axes
|
2021-01-07 16:11:59 +00:00
|
|
|
"""
|