Skip to content

Commit

Permalink
Support for Wagtail 5.0, 5.1 and 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Wesley van Lee committed Jan 4, 2024
1 parent b8e9c3c commit 131cdc8
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 6 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,32 @@ jobs:
python-version: '3.10'
- toxenv: py310-dj41-wt42
python-version: '3.10'
- toxenv: py310-dj42-wt50
python-version: '3.10'
- toxenv: py310-dj42-wt51
python-version: '3.10'
- toxenv: py310-dj42-wt52
python-version: '3.10'

- toxenv: py311-dj41-wt40
python-version: '3.11'
- toxenv: py311-dj41-wt41
python-version: '3.11'
- toxenv: py311-dj41-wt42
python-version: '3.11'
- toxenv: py311-dj42-wt50
python-version: '3.11'
- toxenv: py311-dj42-wt51
python-version: '3.11'
- toxenv: py311-dj42-wt52
python-version: '3.11'

- toxenv: py311-dj41-wt52
python-version: '3.12'
- toxenv: py311-dj42-wt52
python-version: '3.12'
- toxenv: py311-dj50-wt52
python-version: '3.12'

services:
postgres:
Expand Down
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
DJANGO_SETTINGS_MODULE=tests.app.settings
norecursedirs = .tox .git
testpaths = tests
python_paths = .
pythonpaths = .
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
install_requires = [
'django-model-utils>=4.2,<4.4',
'django-recaptcha>=3.0,<3.1',
'wagtail>=4.0,<4.3',
'django>=3.2,<5'
'wagtail>=4.0,<5.3',
'django>=3.2,<6'
]

test_require = [
'psycopg2-binary',
'psycopg2',
# Required for test and coverage
'pytest',
'pytest-cov',
Expand Down
10 changes: 8 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ skip_missing_interpreters = True
skipsdist = True

envlist =
py{38,39,310}-dj{32,40,41}-wt{40,41}
py{310}-dj{41}-wt{42}
py{38,39,310}-dj{32,40,41,42,50}-wt{40,41,42,50,51,52}
py{310,311}-dj{41,42}-wt{42,50,51,52}
py{312}-dj{41,42,50}-wt{52}
isort,flake8,docs

[testenv]
Expand All @@ -16,6 +17,8 @@ basepython =
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12

deps =
dj32: django~=3.2
Expand All @@ -24,6 +27,9 @@ deps =
wt40: wagtail~=4.0
wt41: wagtail~=4.1
wt42: wagtail~=4.2
wt50: wagtail~=5.0
wt51: wagtail~=5.1
wt52: wagtail~=5.2

setenv =
DJANGO_SETTINGS_MODULE=tests.app.settings
Expand Down

0 comments on commit 131cdc8

Please sign in to comment.