Skip to content

Commit f24bc4f

Browse files
committed
Switch to tox 4
1 parent f2df462 commit f24bc4f

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
extras_require={
5454
"testing": [
5555
"pre-commit>=3.3.0,<4",
56-
"tox==3.26.0",
56+
"tox>=4.6.4,<5",
5757
],
5858
},
5959
zip_safe=False,

tox.ini

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
[tox]
2-
skipsdist = True
3-
usedevelop = True
4-
skip_missing_interpreters = True
2+
min_version = 4.0
53

6-
envlist =
4+
envlist =
75
python{3.8,3.9,3.10}-django{3.2}-wagtail{4.1,4.2,5.0}
86
python{3.9,3.10,3.11}-django{4.1}-wagtail{4.1,4.2,5.0}
97
python{3.10,3.11}-django{4.2}-wagtail{5.0}
@@ -17,16 +15,12 @@ python =
1715

1816

1917
[testenv]
20-
install_command = pip install -e ".[testing]" -U {opts} {packages}
21-
commands =
22-
coverage run testmanage.py test --deprecation all {posargs: -v 2}
23-
coverage report -m
18+
package = wheel
19+
wheel_build_env = .pkg
2420

25-
basepython =
26-
python3.8: python3.8
27-
python3.9: python3.9
28-
python3.10: python3.10
29-
python3.11: python3.11
21+
pass_env =
22+
FORCE_COLOR
23+
NO_COLOR
3024

3125
deps =
3226
coverage
@@ -38,3 +32,9 @@ deps =
3832
wagtail4.1: wagtail>=4.1,<4.2
3933
wagtail4.2: wagtail>=4.2,<5.0
4034
wagtail5.0: wagtail>=5.0,<6.0
35+
36+
37+
install_command = python -Im pip install -U {opts} {packages}
38+
commands =
39+
coverage run testmanage.py test --deprecation all {posargs: -v 2}
40+
coverage report -m

0 commit comments

Comments
 (0)