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 }}"
__ 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
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
.. 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.
--- /dev/null
+---
+upgrade:
+ - |
+ Python 3.7 is no longer supported. It is no longer supported upstream and
+ most distributions provide a newer version.
[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
[gh-actions]
python =
- 3.7: py37
3.8: py38
3.9: py39
3.10: py310