Repository: django-hijack/django-hijack (language: python)

Issue:
Add official Python 3.12 support
Add Python 3.12 official support:

- Added to CI (I had to tweak the github action matrix according to the [Django supported versions](https://docs.djangoproject.com/en/4.2/faq/install/#what-python-version-can-i-use-with-django) documentation.
)
- Updated pypi classifiers
- Updated "pytest" command in CONTRIBUTING.md


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 75550fd0..ceccaf8a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -98,6 +98,7 @@ jobs:
           - "3.2"
           - "4.1"
           - "4.2"
+          - "5.0"
         exclude:
           - django-version: "3.2"
             python-version: "3.11"
@@ -105,6 +106,11 @@ jobs:
             python-version: "3.12"
           - django-version: "4.1"
             python-version: "3.12"
+          - django-version: "5.0"
+            python-version: "3.8"
+          - django-version: "5.0"
+            python-version: "3.9"
+            
     steps:
       - uses: actions/checkout@v4
       - run: sudo apt install -y gettext
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 5e05189e..d2c9fd19 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -34,5 +34,5 @@ python -m pip install -e '.[test]'
 Simply run:
 
 ```shell
-pytest
+py.test
 ```
diff --git a/setup.cfg b/setup.cfg
index b4bc3f2d..80acc793 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -23,6 +23,7 @@ classifiers =
     Framework :: Django :: 3.2
     Framework :: Django :: 4.1
     Framework :: Django :: 4.2
+    Framework :: Django :: 5.0
     Programming Language :: Python
     Programming Language :: Python :: 3
     Programming Language :: Python :: 3.8


Test patch:
diff --git a/hijack/tests/test_app/settings.py b/hijack/tests/test_app/settings.py
index eb981ed2..1673d123 100644
--- a/hijack/tests/test_app/settings.py
+++ b/hijack/tests/test_app/settings.py
@@ -1,6 +1,7 @@
 """Settings that need to be set in order to run the tests."""
 import os
 
+import django
 from django.urls import reverse_lazy
 
 DEBUG = True
@@ -100,4 +101,5 @@
 
 AUTH_USER_MODEL = "test_app.CustomUser"
 
-SESSION_SERIALIZER = "django.contrib.sessions.serializers.PickleSerializer"
+if django.VERSION < (4, 0):
+    SESSION_SERIALIZER = "django.contrib.sessions.serializers.PickleSerializer"