Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ on:
# Current configuration:
# - django 4.2, python 3.8, wagtail 5.2, sqlite
# - django 5.0, python 3.10, wagtail 6.0, postgres
# - django 5.0, python 3.12, wagtail main, sqlite (allow failures)
# - django 5.2, python 3.12, wagtail 7.2, sqlite
# - django 5.2, python 3.12, wagtail main, sqlite (allow failures)
jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -29,9 +30,14 @@ jobs:
database: "postgresql"
modeladmin: true
experimental: false

- python: "3.12"
django: "Django>=5.0,<5.1"
django: "Django>=5.2,<5.3"
wagtail: "wagtail>=7.2,<8.0"
database: "sqlite3"
modeladmin: true
experimental: false
- python: "3.12"
django: "Django>=5.2,<6.0"
wagtail: "git+https://github.com/wagtail/wagtail.git@main#egg=wagtail"
database: "sqlite3"
modeladmin: true
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This module supports the creation of A/B testing experiments within a Wagtail si
Installation
------------

wagtail-experiments is compatible with Wagtail 5.2 to 6.0, and Django 4.2 to 5.0. It depends on the Wagtail ModelAdmin module, which is available as an external package as of Wagtail 5.0; we recommend using this rather than the bundled `wagtail.contrib.modeladmin` module to avoid deprecation warnings. The external package is required as of Wagtail 6.0.
wagtail-experiments is compatible with Wagtail 5.2 to 7.2, and Django 4.2 to 5.2. It depends on the Wagtail ModelAdmin module, which is available as an external package as of Wagtail 5.0; we recommend using this rather than the bundled `wagtail.contrib.modeladmin` module to avoid deprecation warnings. The external package is required as of Wagtail 6.0.

To install::

Expand Down
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='wagtail-experiments',
version='0.4',
version='0.5',
description="A/B testing for Wagtail",
author='Matthew Westcott',
author_email='matthew.westcott@torchbox.com',
Expand All @@ -26,12 +26,16 @@
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Framework :: Django',
'Framework :: Django :: 4.2',
'Framework :: Django :: 5.0',
'Framework :: Django :: 5.1',
'Framework :: Django :: 5.2',
'Framework :: Wagtail',
'Framework :: Wagtail :: 5',
'Framework :: Wagtail :: 6',
'Framework :: Wagtail :: 7',
],
)

22 changes: 17 additions & 5 deletions tests/fixtures/test.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
[
{
"pk": 1,
"model": "wagtailcore.locale",
"fields": {
"language_code": "en"
}
},
{
"pk": 1,
"model": "wagtailcore.page",
Expand All @@ -14,7 +21,8 @@
],
"path": "0001",
"url_path": "/",
"slug": "root"
"slug": "root",
"locale_id": 1
}
},

Expand All @@ -30,7 +38,8 @@
"content_type": ["tests", "simplepage"],
"path": "00010001",
"url_path": "/home/",
"slug": "home"
"slug": "home",
"locale_id": 1
}
},
{
Expand Down Expand Up @@ -62,7 +71,8 @@
"content_type": ["tests", "simplepage"],
"path": "000100010001",
"url_path": "/home/home-alternative-1/",
"slug": "home-alternative-1"
"slug": "home-alternative-1",
"locale_id": 1
}
},
{
Expand Down Expand Up @@ -94,7 +104,8 @@
"content_type": ["tests", "simplepage"],
"path": "000100010002",
"url_path": "/home/home-alternative-2/",
"slug": "home-alternative-2"
"slug": "home-alternative-2",
"locale_id": 1
}
},
{
Expand Down Expand Up @@ -126,7 +137,8 @@
"content_type": ["tests", "simplepage"],
"path": "000100010003",
"url_path": "/home/signup-complete/",
"slug": "signup-complete"
"slug": "signup-complete",
"locale_id": 1
}
},
{
Expand Down