]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
Drop support for Python 3.4, add Python 3.7
authorStephen Finucane <stephen@that.guru>
Tue, 3 Sep 2019 13:35:15 +0000 (14:35 +0100)
committerStephen Finucane <stephen@that.guru>
Sun, 8 Sep 2019 14:41:03 +0000 (15:41 +0100)
It's no longer supported upstream and the *second* last Ubuntu LTS
release provides something newer. Time to move on.

Signed-off-by: Stephen Finucane <stephen@that.guru>
.travis.yml
README.rst
docs/development/installation.rst
releasenotes/notes/python-3-7-support-ce63d67b2de68497.yaml [new file with mode: 0644]
requirements-dev.txt
requirements-prod.txt
tools/docker/Dockerfile
tools/docker/trusty-ports.list [deleted file]
tools/docker/trusty.list [deleted file]
tox.ini

index 95cd6bc08313cc2ea02f393927b1877fde963790..77d60c125a9e08712da0ed2f094c836b8b458426 100644 (file)
@@ -5,9 +5,9 @@ sudo: false
 
 python:
   - 2.7
-  - 3.4
   - 3.5
   - 3.6
+  - 3.7
 
 addons:
   postgresql: 9.6
@@ -43,7 +43,7 @@ matrix:
         - PW_TEST_DB_PORT=5433
         - PW_TEST_DB_TYPE=postgres
         - PW_TEST_DB_USER=travis
-      python: 3.6
+      python: 3.7
       sudo: true
       before_install:
         - sudo -u postgres psql -c "grant ALL on DATABASE postgres to travis WITH GRANT OPTION;"
index b45c3e6ad54cd99365c9064d5ad075d5f41de1ec..01da41969168e2a507e8c88cd5a8ca760315e15f 100644 (file)
@@ -41,9 +41,9 @@ of community projects.
 Requirements
 ------------
 
-- Python (2.7, 3.4 - 3.6)
+- Python (2.7, 3.5 - 3.7)
 
-- Django (1.11 - 2.0)
+- Django (1.11 - 2.2)
 
 - Django REST Framework (3.6 - 3.9)
 
index 0ab755f4b57020ab54c3372abe494ed6e6cec16a..ed9ceb13a53673b3f1ddb708f565511be26d7fb2 100644 (file)
@@ -165,7 +165,7 @@ Python Requirements
 ^^^^^^^^^^^^^^^^^^^
 
 To develop Python-based software you first need Python. Patchwork supports both
-Python 2.7 and Python 3.4+. One of these will be installed by default on many
+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.
 
@@ -224,7 +224,7 @@ An example for installing all these packages and the MySQL RDBMS on Ubuntu
        python-tox mysql-server libmysqlclient-dev
 
 If you have an existing MariaDB/MySQL installation and have installed ``pip``
-already/are using Python 3.4+ then you can install all packages using ``pip``:
+already/are using Python 3.5+ then you can install all packages using ``pip``:
 
 .. code-block:: shell
 
@@ -254,7 +254,7 @@ virtual environment. This can be done like so:
 .. note::
 
    If you installed a Python 3.x-based virtual environment package, adjust the
-   executable indicated above as necessary, e.g. ``virtualenv-3.4``.
+   executable indicated above as necessary, e.g. ``virtualenv-3.7``.
 
 Now install the packages. Patchwork provides three requirements files.
 
diff --git a/releasenotes/notes/python-3-7-support-ce63d67b2de68497.yaml b/releasenotes/notes/python-3-7-support-ce63d67b2de68497.yaml
new file mode 100644 (file)
index 0000000..f31e9cd
--- /dev/null
@@ -0,0 +1,9 @@
+---
+features:
+  - |
+    `Python 3.7 <https://www.python.org/downloads/release/python-370/>`_ is now
+    supported.
+upgrade:
+  - |
+    Python 3.4 is no longer supported. This is no longer supported upstream and
+    most distributions provide a newer version.
index d21e843b699ac5d24728464a2e1efc692931c14d..5b5ec44e4a70e4ad39f81eaec5fff107bdda457d 100644 (file)
@@ -1,7 +1,7 @@
-Django==2.2.5; python_version >= '3.4'
+Django==2.2.5; python_version >= '3.5'
 Django==1.11.22; python_version < '3.0'  # pyup: ignore
 djangorestframework==3.9.2
-django-filter==2.1.0; python_version >= '3.4'
+django-filter==2.1.0; python_version >= '3.5'
 django-filter==1.1.0; python_version < '3.0'  # pyup: ignore
 django-debug-toolbar==1.11
 django-dbbackup==3.2.0
index d81d566be1fc541b8917bfc8cff79be5747ef017..8228d9f5b98ad6cff05202f8ba84303edd6de32b 100644 (file)
@@ -1,7 +1,7 @@
-Django==2.2.5; python_version >= '3.4'
+Django==2.2.5; python_version >= '3.5'
 Django==1.11.22; python_version < '3.0'  # pyup: ignore
 djangorestframework==3.9.2
-django-filter==2.1.0; python_version >= '3.4'
+django-filter==2.1.0; python_version >= '3.5'
 django-filter==1.1.0; python_version < '3.0'  # pyup: ignore
 psycopg2-binary==2.8.2
 sqlparse==0.3.0
index 76bb6b2bcb898b434d84d44b73e001952064e6bf..81700711892760614c9879bdafd5d63324c9873e 100644 (file)
@@ -17,14 +17,13 @@ ENV PYTHONUNBUFFERED 1
 
 
 # System
-# trusty and findutils is for python3.4; xenial is for python3.5
+# xenial is for python3.5
 # TODO(stephenfin): Are curl, unzip required?
 COPY tools/docker/*.list /etc/apt/sources.list.d/
 
 RUN cd /etc/apt/sources.list.d; \
     echo $(uname -m) > /tmp/arch; \
     if [ $(cat /tmp/arch) != 'x86_64' ] && grep -q -v "i.86" /tmp/arch; then \
-        mv trusty-ports.list trusty.list; \
         mv xenial-ports.list xenial.list; \
     else \
         rm *-ports.list; \
@@ -34,7 +33,7 @@ RUN apt-get update -qq && \
     apt-get install -y --no-install-recommends --allow-downgrades \
     python-dev python-pip python-setuptools python-wheel \
     python3.5-dev python3-pip python3-setuptools python3-wheel \
-    python3.4-dev findutils=4.4.2-7 python3.6-dev \
+    python3.6-dev \
     libmysqlclient-dev mysql-client curl unzip build-essential \
     git postgresql-client tzdata libpq-dev
 
diff --git a/tools/docker/trusty-ports.list b/tools/docker/trusty-ports.list
deleted file mode 100644 (file)
index ebcf4fa..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-deb http://ports.ubuntu.com/ubuntu-ports/ trusty main
-deb http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main
-deb http://ports.ubuntu.com/ubuntu-ports/ trusty-security main
diff --git a/tools/docker/trusty.list b/tools/docker/trusty.list
deleted file mode 100644 (file)
index 8bb92c0..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-deb http://archive.ubuntu.com/ubuntu/ trusty main
-deb http://archive.ubuntu.com/ubuntu/ trusty-updates main
-deb http://security.ubuntu.com/ubuntu trusty-security main
diff --git a/tox.ini b/tox.ini
index bfca0538a730750930b90ce054af5c50ef0e8056..7742d1b8393684d86fb361806c74e79cf622785f 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
 [tox]
 minversion = 2.0
-envlist = pep8,docs,py{27,34}-django111,py{35,36}-django{111,20,21,22}
+envlist = pep8,docs,py{27}-django111,py{35,36,37}-django{111,20,21,22}
 skipsdist = True
 
 [testenv]
@@ -8,7 +8,7 @@ deps =
     -r{toxinidir}/requirements-test.txt
     django111: django>=1.11,<2.0
     django111: djangorestframework>=3.6,<3.10
-    django111: django-filter>=1.0,<3.0; python_version >= '3.4'
+    django111: django-filter>=1.0,<3.0; python_version >= '3.5'
     django111: django-filter>=1.0,<2.0; python_version < '3.0'
     django20: django>=2.0,<2.1
     django21: django>=2.1,<2.2