]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
Drop Python 3.7 support
authorStephen Finucane <stephen@that.guru>
Tue, 1 Aug 2023 16:44:40 +0000 (17:44 +0100)
committerStephen Finucane <stephen@that.guru>
Tue, 1 Aug 2023 16:44:40 +0000 (17:44 +0100)
Signed-off-by: Stephen Finucane <stephen@that.guru>
.github/workflows/ci.yaml
docs/deployment/installation.rst
docs/development/installation.rst
releasenotes/notes/remove-python-3-7-support-a3f2fad17c8a62a3.yaml [new file with mode: 0644]
tox.ini

index b361a30cdbc81dbefc11a57ac482cadfdd616e61..d0a1e783bf1cbac3f491fd34088762106c766a34 100644 (file)
@@ -23,7 +23,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
+        python: ["3.8", "3.9", "3.10", "3.11"]
         db: [postgres, mysql, sqlite3]
     env:
       DATABASE_TYPE: "${{ matrix.db }}"
index abc4368ba32ccc83bbbe4e8323bd2c67fa558a82..361f96ca950c1d996780a9d010f723cf68629537 100644 (file)
@@ -166,8 +166,7 @@ We will install this under ``/opt``, though this is only a suggestion:
    __ https://docs.djangoproject.com/en/2.2/intro/tutorial01/#creating-a-project
 
 Next we require Python. If not already installed, then you should do so now.
-Patchwork supports Python 3.7+. Python 3 is installed by default, but you
-should validate this now:
+Python 3 is installed by default but you should validate this now:
 
 .. code-block:: shell
 
index 7a51b081dbcdb8e96401a68387c6fa4ffd9eebc3..6f4920a629957aa7618cfec4d53c2f47f89f0af9 100644 (file)
@@ -177,10 +177,9 @@ These are detailed below.
 Python Requirements
 ^^^^^^^^^^^^^^^^^^^
 
-To develop Python-based software you first need Python. Patchwork supports
-Python 3.7+. Python 3 will be installed by default on many installations,
-though a suitable version can usually be installed manually using the
-``python3`` package.
+To develop Python-based software you first need Python. Python 3 will be
+installed by default on many installations, though a suitable version can
+usually be installed manually using the ``python3`` package.
 
 It's a good idea to use `virtual environments`__ to develop Python software.
 Virtual environments are "instances" of your system Python without any of the
@@ -264,7 +263,7 @@ virtual environment. This can be done like so:
 .. note::
 
    If you wish to use a specific Python version, you can provide the
-   ``--python`` argument to use this, e.g. ``--python=python3.7``.
+   ``--python`` argument to use this, e.g. ``--python=python3.11``.
 
 Now install the packages. Patchwork provides three requirements files.
 
diff --git a/releasenotes/notes/remove-python-3-7-support-a3f2fad17c8a62a3.yaml b/releasenotes/notes/remove-python-3-7-support-a3f2fad17c8a62a3.yaml
new file mode 100644 (file)
index 0000000..12eca65
--- /dev/null
@@ -0,0 +1,5 @@
+---
+upgrade:
+  - |
+    Python 3.7 is no longer supported. It is no longer supported upstream and
+    most distributions provide a newer version.
diff --git a/tox.ini b/tox.ini
index 7836311ebd8e953a92d4b15b45427f73a60d1cd9..5d33bcd5e5fefa7393fb7d240aa4474b41519544 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
 [tox]
 minversion = 3.2
-envlist = pep8,docs,py{37,38,39}-django32,py{38,39,310,311}-django{41,42}
+envlist = pep8,docs,py{38,39}-django32,py{38,39,310,311}-django{41,42}
 
 [testenv]
 skip_install = true
@@ -74,7 +74,6 @@ commands =
 
 [gh-actions]
 python =
-    3.7: py37
     3.8: py38
     3.9: py39
     3.10: py310