From 3cb9dcf9c92d7e6e3a06af40411253a0a2ca0e60 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Wed, 8 Apr 2020 22:41:30 +0100 Subject: docs: Remove references to Python 2.7 Signed-off-by: Stephen Finucane --- docs/deployment/installation.rst | 3 +-- docs/development/installation.rst | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 15 deletions(-) (limited to 'docs') diff --git a/docs/deployment/installation.rst b/docs/deployment/installation.rst index 80b53e3..cef522c 100644 --- a/docs/deployment/installation.rst +++ b/docs/deployment/installation.rst @@ -157,8 +157,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 both Python 2.7 and Python 3.3+, though we're going to use -the latter to ease future upgrades. Python 3 is installed by default, but you +Patchwork supports Python 3.6+. 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 33ebd96..244aabe 100644 --- a/docs/development/installation.rst +++ b/docs/development/installation.rst @@ -165,10 +165,10 @@ These are detailed below. Python Requirements ^^^^^^^^^^^^^^^^^^^ -To develop Python-based software you first need Python. Patchwork supports both -Python 2.7 and Python 3.5+. One of these will be installed by default on many -installations, though they can also be installed manually using the ``python`` -or ``python3`` packages. +To develop Python-based software you first need Python. Patchwork supports +Python 3.6+. 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 @@ -177,12 +177,12 @@ deploy Patchwork against a "well known" set of dependencies, but they can also be used to test Patchwork against several versions of Django. If you do not have ``virtualenv`` installed then you should install it now. This -can be installed using the ``python-virtualenv`` or ``python3-virtualenv`` -packages. Alternatively you can install these using ``pip``. +can be installed using the ``python3-virtualenv`` package. Alternatively you +can install these using ``pip``. It is also helpful to install ``tox`` which is used for running tests in -Patchwork. This can be installed using the ``python-tox`` or ``python3-tox`` -packages, or via ``pip``. +Patchwork. This can be installed using the ``python3-tox`` package, or via +``pip``. __ https://virtualenv.readthedocs.io/en/latest/ @@ -217,15 +217,15 @@ Example Installation ^^^^^^^^^^^^^^^^^^^^ An example for installing all these packages and the MySQL RDBMS on Ubuntu -15.04 is given below: +20.04 is given below: .. code-block:: shell - $ sudo apt-get install python python-pip python-dev python-virtualenv \ - python-tox mysql-server libmysqlclient-dev + $ sudo apt-get install python3 python3-pip python3-dev python3-virtualenv \ + python3-tox mysql-server libmysqlclient-dev -If you have an existing MariaDB/MySQL installation and have installed ``pip`` -already/are using Python 3.5+ then you can install all packages using ``pip``: +If you have an existing MariaDB/MySQL installation then you can install all +packages using ``pip``: .. code-block:: shell -- cgit v1.2.3