From 185a49bce36f86e25a35c4ebb15d454db4b41030 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 1 Aug 2023 17:44:40 +0100 Subject: [PATCH] Drop Python 3.7 support Signed-off-by: Stephen Finucane --- .github/workflows/ci.yaml | 2 +- docs/deployment/installation.rst | 3 +-- docs/development/installation.rst | 9 ++++----- .../remove-python-3-7-support-a3f2fad17c8a62a3.yaml | 5 +++++ tox.ini | 3 +-- 5 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 releasenotes/notes/remove-python-3-7-support-a3f2fad17c8a62a3.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b361a30c..d0a1e783 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 }}" diff --git a/docs/deployment/installation.rst b/docs/deployment/installation.rst index abc4368b..361f96ca 100644 --- a/docs/deployment/installation.rst +++ b/docs/deployment/installation.rst @@ -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 diff --git a/docs/development/installation.rst b/docs/development/installation.rst index 7a51b081..6f4920a6 100644 --- a/docs/development/installation.rst +++ b/docs/development/installation.rst @@ -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 index 00000000..12eca654 --- /dev/null +++ b/releasenotes/notes/remove-python-3-7-support-a3f2fad17c8a62a3.yaml @@ -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 7836311e..5d33bcd5 100644 --- 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 -- 2.47.3