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 =
|
2021-04-06 15:13:24 +00:00
|
|
|
py{36,37,38,39,py3}-dj{22,31}
|
2021-03-09 11:40:04 +00:00
|
|
|
py{38,39}-djmain
|
2021-02-15 18:37:50 +00:00
|
|
|
py38-djqa
|
2021-01-07 16:11:59 +00:00
|
|
|
|
|
|
|
|
[gh-actions]
|
|
|
|
|
python =
|
|
|
|
|
3.6: py36
|
|
|
|
|
3.7: py37
|
|
|
|
|
3.8: py38
|
|
|
|
|
3.9: py39
|
|
|
|
|
pypy3: pypy3
|
|
|
|
|
|
|
|
|
|
[gh-actions:env]
|
|
|
|
|
DJANGO =
|
|
|
|
|
2.2: dj22
|
|
|
|
|
3.1: dj31
|
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
|
|
|
|
|
dj22: django>=2.2,<2.3
|
|
|
|
|
dj31: django>=3.1,<3.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
|
2021-03-09 11:40:04 +00:00
|
|
|
[testenv:py{38,39,py3}-djmain]
|
2021-01-07 16:11:59 +00:00
|
|
|
ignore_errors = true
|
|
|
|
|
ignore_outcome = true
|
|
|
|
|
|
|
|
|
|
# QA runs type checks, linting, and code formatting checks
|
|
|
|
|
[testenv:py38-djqa]
|
|
|
|
|
deps = -r requirements-qa.txt
|
|
|
|
|
commands =
|
|
|
|
|
mypy axes
|
|
|
|
|
prospector
|
|
|
|
|
black -t py36 --check --diff axes
|
|
|
|
|
"""
|