Skip to content

Commit

Permalink
Drop Python 3.7 support
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Finucane <stephen@that.guru>
  • Loading branch information
stephenfin committed Aug 1, 2023
1 parent e735378 commit 185a49b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
3 changes: 1 addition & 2 deletions docs/deployment/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 4 additions & 5 deletions docs/development/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -74,7 +74,6 @@ commands =

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
Expand Down

0 comments on commit 185a49b

Please sign in to comment.