Repository: oliwarner/django-multifactor (language: python)

Issue:
Start to test and add support for Django 5
Django 5 is coming and so it would be good to test the project for support using the latest development release. From the top of my head I can't think of anything that should break but obviously it requires testing.

It would also be good to test against Python 3.12 which is currently in RC-3 to keep up with the current releases and give everyone the confidence that it'll keep working.

I'll try to do some testing myself on my fork for both of these and will make PR requests once I have tested so that the README is updated.  The project could also still do with having a new version released to pypi as the latest changes used the same version number


Discussion / hints:

Fix patch:
diff --git a/README.md b/README.md
index 9b192be..23e47e9 100644
--- a/README.md
+++ b/README.md
@@ -18,12 +18,13 @@ FIDO2/WebAuthn is the big-ticket item for MFA. It allows the browser to interfac
 # Python and Django Support
 This project targets modern stacks, officially supporting Python 3.8+ and Django 3.2+.
 
-| **Python/Django** | **2.2** |**3.2** | **4.0** | **4.1** | **4.2** |
-|-------------------|---------|--------|---------|---------|---------|
-| 3.8               | Y       | Y      | Y       | Y       | N/A     |
-| 3.9               | Y       | Y      | Y       | Y       | N/A     |
-| 3.10              | N       | Y      | Y       | Y       | N/A     |
-| 3.11              | N       | N      | N       | Y       | Y  
+| **Python/Django** | **2.2** |**3.2** | **4.0** | **4.1** | **4.2** | **5.0** |
+|-------------------|---------|--------|---------|---------|---------|---------|
+| 3.8               | Y       | Y      | Y       | Y       | N/A     | N/A     |
+| 3.9               | Y       | Y      | Y       | Y       | N/A     | N/A     |
+| 3.10              | N       | Y      | Y       | Y       | N/A     | Y       |
+| 3.11              | N       | N      | N       | Y       | Y       | Y       |
+| 3.12              | N       | N      | N       | N       | Y       | Y       |
 
 * Python 3.11 only works with Django 4.1.3+
 
diff --git a/pyproject.toml b/pyproject.toml
index 6ab52ec..e609f38 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -43,7 +43,7 @@ include = [
 
 [tool.poetry.dependencies]
 python = ">=3.7, <4.0"
-django = "> 2.2, <= 5.0"
+django = "> 2.2, <= 5.1"
 pyotp = '^2.9'
 fido2 = '1.1.2'
 
@@ -63,4 +63,4 @@ style = "pep440"
 
 [build-system]
 requires = ["poetry-core>=1.7.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
-build-backend = "poetry_dynamic_versioning.backend"
\ No newline at end of file
+build-backend = "poetry_dynamic_versioning.backend"


Test patch:
diff --git a/testsite/requirements.txt b/testsite/requirements.txt
index 8eb2d30..88faabc 100644
--- a/testsite/requirements.txt
+++ b/testsite/requirements.txt
@@ -1,6 +1,6 @@
 pip
-Django<=5
+Django<=5.1
 django-decorator-include
 django_extensions
 django-debug-toolbar
--e ../
\ No newline at end of file
+-e ../