Repository: llybin/drf-recaptcha (language: python)

Issue:
Support for Django 4
Currently, this package supports Django until the versions 3.2. Is it possible to add a support for [Django 4.0](https://docs.djangoproject.com/en/4.0/releases/4.0/)?


Discussion / hints:
Yep, you can make PR like that: https://github.com/llybin/drf-recaptcha/commit/5e93cd8d3dbd2b3db698746a1eb6e57d44776a01

Fix patch:
diff --git a/README.md b/README.md
index 47715f5..8bcdf2b 100644
--- a/README.md
+++ b/README.md
@@ -12,8 +12,8 @@
 
 ## Requirements
 
-*   Python: 3.6, 3.7, 3.8, 3.9
-*   Django: 2.2, 3.0, 3.1, 3.2
+*   Python: 3.6, 3.7, 3.8, 3.9, 3.10
+*   Django: 2.2, 3.1, 3.2, 4.0
 *   DRF: 3.9, 3.10, 3.11, 3.12
 
 ## Installation
diff --git a/setup.py b/setup.py
index 47a3005..05e1325 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ def read(f):
 
 setup(
     name="drf-recaptcha",
-    version="2.0.5",
+    version="2.0.6",
     description="Django rest framework recaptcha field serializer.",
     long_description=read("README.md"),
     long_description_content_type="text/markdown",
@@ -17,7 +17,7 @@ def read(f):
     url="https://github.com/llybin/drf-recaptcha",
     packages=find_packages(exclude=["tests*"]),
     install_requires=[
-        "django>=2.2,<3.3",
+        "django>=2.2,<4.1",
         "djangorestframework>=3.9,<4.0",
         "django-ipware>=2.1,<4.0",
     ],
@@ -42,9 +42,9 @@ def read(f):
         "Intended Audience :: Developers",
         "Framework :: Django",
         "Framework :: Django :: 2.2",
-        "Framework :: Django :: 3.0",
         "Framework :: Django :: 3.1",
         "Framework :: Django :: 3.2",
+        "Framework :: Django :: 4.0",
         "Intended Audience :: Developers",
         "License :: OSI Approved :: MIT License",
         "Operating System :: OS Independent",
@@ -58,5 +58,6 @@ def read(f):
         "Programming Language :: Python :: 3.7",
         "Programming Language :: Python :: 3.8",
         "Programming Language :: Python :: 3.9",
+        "Programming Language :: Python :: 3.10",
     ],
 )


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 29d2a28..9fd370c 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -1,6 +1,6 @@
 name: tests
 
-on: [push]
+on: [ push ]
 
 jobs:
   build:
@@ -9,15 +9,11 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        python-version: ["3.6", "3.7", "3.8", "3.9"]
-        django-version: ["2.2", "3.0", "3.1", "3.2"]
-        drf-version: ["3.9", "3.10", "3.11", "3.12"]
+        python-version: [ "3.6", "3.7", "3.8", "3.9", "3.10" ]
+        django-version: [ "2.2", "3.1", "3.2", "4.0" ]
+        drf-version: [ "3.9", "3.10", "3.11", "3.12" ]
         exclude:
           # django-version 3+ is compatible with drf 3.11+
-          - django-version: "3.0"
-            drf-version: "3.9"
-          - django-version: "3.0"
-            drf-version: "3.10"
           - django-version: "3.1"
             drf-version: "3.9"
           - django-version: "3.1"
@@ -26,6 +22,15 @@ jobs:
             drf-version: "3.9"
           - django-version: "3.2"
             drf-version: "3.10"
+          - django-version: "4.0"
+            drf-version: "3.9"
+          - django-version: "4.0"
+            drf-version: "3.10"
+          # python 3.10 is incompatible with django "2.2", "3.1"
+          - python-version: "3.10"
+            django-version: "2.2"
+          - python-version: "3.10"
+            django-version: "3.1"
     steps:
     - uses: actions/checkout@v2
     - name: Set up Python ${{ matrix.python-version }}