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 =
|
2022-05-15 12:24:47 +00:00
|
|
|
py{37,38,39,310,py38}-dj32
|
|
|
|
|
py{38,39,310,py38}-dj40
|
2022-08-03 13:47:06 +00:00
|
|
|
py{38,39,310,py38}-dj41
|
2022-05-15 12:24:47 +00:00
|
|
|
py{38,39,310,py38}-djmain
|
2022-05-15 12:30:26 +00:00
|
|
|
py310-djqa
|
2021-01-07 16:11:59 +00:00
|
|
|
|
|
|
|
|
[gh-actions]
|
|
|
|
|
python =
|
|
|
|
|
3.7: py37
|
|
|
|
|
3.8: py38
|
|
|
|
|
3.9: py39
|
2021-11-01 14:38:09 +00:00
|
|
|
3.10: py310
|
2022-05-15 12:24:47 +00:00
|
|
|
pypy-3.8: pypy38
|
2021-01-07 16:11:59 +00:00
|
|
|
|
|
|
|
|
[gh-actions:env]
|
|
|
|
|
DJANGO =
|
2021-04-06 12:48:29 +00:00
|
|
|
3.2: dj32
|
2021-12-10 19:42:17 +00:00
|
|
|
4.0: dj40
|
2022-08-03 13:47:06 +00:00
|
|
|
4.1: dj41
|
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 =
|
|
|
|
|
-r requirements-test.txt
|
2021-04-06 17:13:08 +00:00
|
|
|
dj32: django>=3.2,<3.3
|
2021-12-10 19:42:17 +00:00
|
|
|
dj40: django>=4.0,<4.1
|
2022-08-03 13:47:06 +00:00
|
|
|
dj41: django>=4.1,<4.2
|
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
|
2022-08-16 12:12:23 +00:00
|
|
|
pypy38-dj41: True
|
2022-01-08 17:51:59 +00:00
|
|
|
ignore_errors =
|
|
|
|
|
djmain: True
|
2022-08-16 12:12:23 +00:00
|
|
|
pypy38-dj41: True
|
2021-01-07 16:11:59 +00:00
|
|
|
|
|
|
|
|
# QA runs type checks, linting, and code formatting checks
|
2022-01-08 17:51:59 +00:00
|
|
|
[testenv:py310-djqa]
|
2021-01-07 16:11:59 +00:00
|
|
|
deps = -r requirements-qa.txt
|
|
|
|
|
commands =
|
|
|
|
|
mypy axes
|
|
|
|
|
prospector
|
2022-01-08 17:51:59 +00:00
|
|
|
black -t py38 --check --diff axes
|
2021-01-07 16:11:59 +00:00
|
|
|
"""
|