Repository: wagtail-nest/wagtail-modeladmin (language: python)

Issue:
Drop Pyhon 3.7
before a full release


Discussion / hints:

Fix patch:
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 9ad8deb..74e34d9 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -23,7 +23,7 @@ repos:
     hooks:
       - id: black
         language_version: python3
-        args: ['--target-version', 'py37']
+        args: ['--target-version', 'py38']
   - repo: https://github.com/charliermarsh/ruff-pre-commit
     # Ruff version.
     rev: 'v0.0.265'
diff --git a/pyproject.toml b/pyproject.toml
index 9bfa795..f7fa2a3 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -15,7 +15,6 @@ classifiers = [
     "Operating System :: OS Independent",
     "Programming Language :: Python",
     "Programming Language :: Python :: 3",
-    "Programming Language :: Python :: 3.7",
     "Programming Language :: Python :: 3.8",
     "Programming Language :: Python :: 3.9",
     "Programming Language :: Python :: 3.10",
diff --git a/tox.ini b/tox.ini
index 6a16c2d..9dfe257 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,24 +3,21 @@ skipsdist = True
 usedevelop = True
 
 envlist =
-    python3.7-django3.2-wagtail5.0
     python{3.8,3.9,3.10}-django{3.2,4.1,.4.2}-wagtail{5.0,main}
     python3.11-django4.2-wagtail{5.0,main}
 
 [gh]
 python =
-    3.7 = python3.7-django3.2-wagtail5.0
     3.8 = python3.8-django{3.2,4.1,.4.2}-wagtail{5.0,main}
     3.9 = python3.9-django{3.2,4.1,.4.2}-wagtail{5.0,main}
     3.10 = python3.10-django{3.2,4.1,.4.2}-wagtail{5.0,main}
-    3.11 = python3.11-django4.2-wagtail{5.0,main}
+    3.11 = python3.11-django{4.1,4.2}-wagtail{5.0,main}
 
 [testenv]
 install_command = pip install -e ".[testing]" -U {opts} {packages}
 commands = coverage run testmanage.py test --deprecation all {posargs: -v 2}
 
 basepython =
-    python3.7: python3.7
     python3.8: python3.8
     python3.9: python3.9
     python3.10: python3.10


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 67f724c..591e6d5 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -35,7 +35,7 @@ jobs:
     needs: lint
     strategy:
       matrix:
-        python: ['3.7', '3.8', '3.9', '3.10', '3.11']
+        python: ['3.8', '3.9', '3.10', '3.11']
 
     steps:
       - uses: actions/checkout@v3
@@ -57,7 +57,7 @@ jobs:
     needs: lint
     strategy:
       matrix:
-        python: ['3.7', '3.8', '3.9']
+        python: ['3.8', '3.9']
         include:
           - python: '3.10'
             postgres: '12'