Repository: coderedcorp/wagtail-seo (language: python)

Issue:
Add Wagtail 6 compatibility
After upgrading Wagtail to 6.0, project startup fails with the following error from wagtail-seo:

```python
  File ".../venv/lib/python3.11/site-packages/wagtailseo/models.py", line 8, in <module>
    from wagtail.admin.edit_handlers import (
ModuleNotFoundError: No module named 'wagtail.admin.edit_handlers'
```


Discussion / hints:
It looks like the issue above was seemingly caused by `pip` autodowngrading wagtail-seo as `2.4.1` explicitly require `wagtail<6`. Nevertheless, Wagtail 6 support would be welcome :)

Fix patch:
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 09ac11d..2b844c5 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -41,6 +41,10 @@ stages:
         py3.11_wag5:
           PYTHON_VERSION: '3.11'
           WAGTAIL: '5.*'
+        py3.12_wag6:
+          PYTHON_VERSION: '3.12'
+          WAGTAIL: '6.*'
+
     steps:
     - task: UsePythonVersion@0
       displayName: 'Use Python version'
diff --git a/setup.py b/setup.py
index b2351e0..bf186b5 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@
     include_package_data=True,
     packages=["wagtailseo"],
     python_requires=">=3.8",
-    install_requires=["wagtail>=3.0,<6.0"],
+    install_requires=["wagtail>=3.0,<7.0"],
     classifiers=[
         "Framework :: Django",
         "Framework :: Wagtail",
diff --git a/wagtailseo/__init__.py b/wagtailseo/__init__.py
index e07be29..ab41bfd 100644
--- a/wagtailseo/__init__.py
+++ b/wagtailseo/__init__.py
@@ -1,3 +1,3 @@
-release = ["2", "4", "1"]
+release = ["2", "5", "0"]
 __version__ = "{0}.{1}.{2}".format(release[0], release[1], release[2])
 __shortversion__ = "{0}.{1}".format(release[0], release[1])
diff --git a/wagtailseo/settings.py b/wagtailseo/settings.py
index bc890aa..08ed27d 100644
--- a/wagtailseo/settings.py
+++ b/wagtailseo/settings.py
@@ -1,6 +1,7 @@
 """
 Provide default Django settings.
 """
+
 from django.conf import settings
 
 
diff --git a/wagtailseo/wagtail_hooks.py b/wagtailseo/wagtail_hooks.py
index 5f1052a..b08c281 100644
--- a/wagtailseo/wagtail_hooks.py
+++ b/wagtailseo/wagtail_hooks.py
@@ -1,6 +1,7 @@
 """
 Registers wagtail-seo icon in the admin dashboard.
 """
+
 from wagtail import hooks
 
 


Test patch:
diff --git a/testproject/testproject/settings.py b/testproject/testproject/settings.py
index 5e10287..6d78d83 100644
--- a/testproject/testproject/settings.py
+++ b/testproject/testproject/settings.py
@@ -9,6 +9,7 @@
 For the full list of settings and their values, see
 https://docs.djangoproject.com/en/2.2/ref/settings/
 """
+
 # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
 import os
 
diff --git a/testproject/testproject/wsgi.py b/testproject/testproject/wsgi.py
index 6a80e1a..61a9209 100644
--- a/testproject/testproject/wsgi.py
+++ b/testproject/testproject/wsgi.py
@@ -6,6 +6,7 @@
 For more information on this file, see
 https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
 """
+
 import os
 
 from django.core.wsgi import get_wsgi_application