Skip to content

Commit a946a1b

Browse files
authored
Make support for Wagtail 7+ official (#425)
* add support for Wagtail 7 to the tox test matrix * tidy up testing dependencies * update changelog * linting * tweak tox envlist
1 parent 250e148 commit a946a1b

File tree

4 files changed

+19
-13
lines changed

4 files changed

+19
-13
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Unreleased
22

3+
## Added
4+
5+
- Support for Wagtail 7+ ([#425](https://github.com/torchbox/wagtail-grapple/pull/425)) @rachelhsmith
6+
37
## [0.28.0] - 2025-02-18
48

59
### Added

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ classifiers = [
2828
"Programming Language :: Python :: 3.13",
2929
"Framework :: Wagtail",
3030
"Framework :: Wagtail :: 6",
31+
"Framework :: Wagtail :: 7",
3132
]
3233
dynamic = ["version"]
3334
requires-python = ">=3.9"
@@ -40,6 +41,13 @@ dependencies = [
4041
[project.optional-dependencies]
4142
testing = [
4243
"coverage>=7.2.7,<8.0",
44+
"flit>=3.8",
45+
"factory-boy==3.2.1",
46+
"wagtail-factories>=4.1.0",
47+
"django-cors-headers==3.4.0",
48+
"wagtailmedia>=0.13",
49+
"dj-database-url==2.1.0",
50+
"psycopg2-binary>=2.9.5,<3.0.0",
4351
]
4452

4553
docs = [

tests/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ruff==0.9.4
55

66
# Runtime requirements
77
Django>=4.2,<5.1
8-
wagtail>=6.3,<6.5
8+
wagtail>=6.3,<8.0
99
graphene-django>=3.0.0
1010
factory-boy==3.2.1
1111
wagtail-factories>=4.1.0

tox.ini

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
min_version = 4.0
33

44
envlist =
5-
py{39,310,311,312}-django{42}-wagtail{63,64}
6-
py{312}-django{50}-wagtail{63}
7-
py{310,311,312,313}-django{51}-wagtail{63,64}
5+
py{39,310,311,312}-django{42}-wagtail{63,64,70}
6+
py{312}-django{51}-wagtail{63}
7+
py{312,313}-django{52}-wagtail{70}
88
interactive
99

1010
[gh-actions]
@@ -34,21 +34,15 @@ setenv =
3434

3535
change_dir = {tox_root}/tests
3636

37-
deps =
38-
flit>=3.8
39-
coverage>=7.0,<8.0
40-
factory-boy==3.2.1
41-
wagtail-factories>=4.1.0
42-
django-cors-headers==3.4.0
43-
wagtailmedia>=0.13
44-
dj-database-url==2.1.0
45-
psycopg2>=2.9.5,<3.0.0
37+
extras = testing
4638

39+
deps =
4740
django42: Django>=4.2,<5.0
4841
django50: Django>=5.0,<5.1
4942
django51: Django>=5.1,<5.2
5043
wagtail63: wagtail>=6.3,<6.4
5144
wagtail64: wagtail>=6.4,<6.5
45+
wagtail70: wagtail>=7.0,<7.1
5246

5347
commands =
5448
python -m coverage run manage.py test {posargs: -v1} --exclude-tag=needs-custom-settings

0 commit comments

Comments
 (0)