Skip to content

Commit 72ab734

Browse files
authored
Merge pull request #21 from torchbox-forks/support/wagtail-70-maintenance
Wagtail 70 maintenance
2 parents 7ff8c58 + a8f0784 commit 72ab734

File tree

4 files changed

+24
-11
lines changed

4 files changed

+24
-11
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,22 @@ jobs:
88
strategy:
99
matrix:
1010
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
11-
wagtail-version: ["5.2", "6.2", "6.3"]
12-
django-version: ["4.2", "5.0", "5.1"]
11+
wagtail-version: ["5.2", "6.3", "6.4", "7.0"]
12+
django-version: ["4.2", "5.1", "5.2"]
1313
exclude:
14+
# Don't test django with incompatible python versions
1415
- python-version: "3.13"
1516
django-version: "4.2"
16-
- python-version: "3.13"
17-
django-version: "5.0"
18-
- python-version: "3.9"
19-
django-version: "5.0"
2017
- python-version: "3.9"
2118
django-version: "5.1"
19+
- python-version: "3.9"
20+
django-version: "5.2"
21+
# Don't test wagtail with incompatible django versions
2222
- wagtail-version: "5.2"
2323
django-version: "5.1"
24-
- wagtail-version: "6.2"
25-
django-version: "5.1"
24+
- wagtail-version: "5.2"
25+
django-version: "5.2"
26+
2627
steps:
2728
- uses: actions/checkout@v4
2829
- name: Set up Python ${{ matrix.python-version }}
@@ -33,7 +34,9 @@ jobs:
3334
run: |
3435
python -m pip install --upgrade pip
3536
pip install -U .[test]
36-
pip install -q wagtail==${{ matrix.wagtail-version }}
37+
pip install -q wagtail==${{ matrix.wagtail-version }}.*
38+
pip install -q django==${{ matrix.django-version }}.*
39+
pip show wagtail django # For debugging purposes
3740
- name: Run tests
3841
run: |
3942
python runtests.py

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
89
### Changed
10+
- Add CI testing for Wagtail 6.4 & 7.0
11+
- Add CI testing for Django 5.2
12+
913
### Fixed
14+
1015
### Removed
16+
- Drop Wagtail testing for 5.0
17+
- Drop Django testing for 5.0
1118

1219
## [1.6.0] - 2025-01-26
1320
### Added

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@
4040
"Environment :: Web Environment",
4141
"Framework :: Django",
4242
"Framework :: Django :: 4.2",
43-
"Framework :: Django :: 5.0",
4443
"Framework :: Django :: 5.1",
44+
"Framework :: Django :: 5.2",
4545
"Framework :: Wagtail",
4646
"Framework :: Wagtail :: 5",
4747
"Framework :: Wagtail :: 6",
48+
"Framework :: Wagtail :: 7",
4849
"Intended Audience :: Developers",
4950
"License :: OSI Approved :: MIT License",
5051
"Operating System :: OS Independent",

tests/test_widget.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@ def test_native_color_panel_uses_correct_widget(self):
2525
color_panel = page.content_panels[1]
2626
self.assertEqual(color_panel.__class__, NativeColorPanel)
2727

28-
color_widget = color_panel.get_form_options()["widgets"]["color"]
28+
# Bind the panel to the model before calling get_form_options
29+
bound_panel = color_panel.bind_to_model(page.__class__)
30+
color_widget = bound_panel.get_form_options()["widgets"]["color"]
2931
self.assertEqual(color_widget.__class__, ColorInputWidget)

0 commit comments

Comments
 (0)