-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtox.ini
60 lines (47 loc) · 1.88 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
[tox]
skipsdist = True
usedevelop = True
envlist =
python{3.9,3.10,3.11}-django{4.2,5.0,main}-wagtail{5.2,6.1,6.2,main}
python{3.10,3.11,3.12}-django{5.0,main}-wagtail{5.2,6.1,6.2,main}
python3.13-django{5.1,main}-wagtail{6.3,main}
[gh]
python =
3.9 = python3.9-django{4.2}-wagtail{5.2,main}
3.10 = python3.10-django{4.2,5.0}-wagtail{5.2,6.1,6.2,main}
3.11 = python3.11-django{4.2,5.0}-wagtail{6.1,6.2,main}
3.12 = python3.12-django{4.2,5.0}-wagtail{6.1,6.2,main}
3.13 = python3.13-django{5.1,main}-wagtail{6.3,main}
[testenv]
install_command = pip install -e ".[testing]" -U {opts} {packages}
commands = coverage run testmanage.py test --deprecation all {posargs: -v 2}
basepython =
python3.9: python3.9
python3.10: python3.10
python3.11: python3.11
python3.12: python3.12
python3.13: python3.13
deps =
coverage
django4.2: Django>=4.2,<4.3
django5.0: Django>=5.0,<5.1
djangomain: git+https://github.com/django/django.git@main#egg=Django
wagtail5.2: wagtail>=5.2,<6.0
wagtail6.1: wagtail>=6.1,<6.2
wagtail6.2: wagtail>=6.2,<6.3
wagtail6.3: git+https://github.com/wagtail/wagtail.git@stable/6.3.x#egg=wagtail
wagtailmain: git+https://github.com/wagtail/wagtail.git#egg=wagtail
postgres: psycopg2>=2.8.4
setenv =
postgres: DATABASE_URL={env:DATABASE_URL:postgres:///wagtail_modeladmin}
[testenv:interactive]
basepython = python3.10
commands_pre =
python {toxinidir}/testmanage.py makemigrations
python {toxinidir}/testmanage.py migrate
python {toxinidir}/testmanage.py shell -c "from django.contrib.auth.models import User;(not User.objects.filter(username='admin').exists()) and User.objects.create_superuser('admin', '[email protected]', 'changeme')"
python {toxinidir}/testmanage.py createcachetable
commands =
{posargs:python testmanage.py runserver 0.0.0.0:8020}
setenv =
INTERACTIVE = 1