-
Notifications
You must be signed in to change notification settings - Fork 17
/
tox.ini
66 lines (61 loc) · 1.2 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[tox]
skipsdist = true
args_are_paths = false
envlist =
flake8,
isort,
pypi,
py37-3.2,
py{38,39}-{3.2,4.0,4.1,4.2},
py310-{3.2,4.0,4.1,4.2,main}
py311-{3.2,4.0,4.1,4.2,main}
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
[testenv]
basepython =
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
usedevelop = true
commands =
{envpython} -R -Wonce {envbindir}/coverage run -a -m django test -v2 --settings=tests.settings {posargs}
coverage report
deps =
coverage
3.2: Django>=3.2a1,<4
4.0: Django>=4.0,<4.1
4.1: Django>=4.1,<4.2
4.2: Django>=4.2,<5
main: https://github.com/django/django/archive/main.tar.gz
passenv =
GITHUB_*
[testenv:flake8]
usedevelop = false
basepython = python3.7
commands = flake8
deps = flake8
[testenv:isort]
usedevelop = false
basepython = python3.7
commands = isort --recursive --check-only --diff polymodels tests
deps =
isort
Django
[testenv:pypi]
usedevelop = false
basepython = python3.7
commands =
python setup.py sdist --format=gztar bdist_wheel
twine check dist/*
deps =
pip
setuptools
twine
wheel