Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/933974/?format=api
{ "id": 933974, "url": "http://patchwork.ozlabs.org/api/patches/933974/?format=api", "web_url": "http://patchwork.ozlabs.org/project/patchwork/patch/20180624195557.19909-7-stephen@that.guru/", "project": { "id": 16, "url": "http://patchwork.ozlabs.org/api/projects/16/?format=api", "name": "Patchwork", "link_name": "patchwork", "list_id": "patchwork.lists.ozlabs.org", "list_email": "patchwork@lists.ozlabs.org", "web_url": "http://jk.ozlabs.org/projects/patchwork/", "scm_url": "git://github.com/getpatchwork/patchwork", "webscm_url": "https://github.com/getpatchwork/patchwork", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20180624195557.19909-7-stephen@that.guru>", "list_archive_url": null, "date": "2018-06-24T19:55:53", "name": "[07/11] Add support for Django 2.0", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "b9a9a22a806a5fea193bed30dab57960f644cd16", "submitter": { "id": 69991, "url": "http://patchwork.ozlabs.org/api/people/69991/?format=api", "name": "Stephen Finucane", "email": "stephen@that.guru" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/patchwork/patch/20180624195557.19909-7-stephen@that.guru/mbox/", "series": [ { "id": 51752, "url": "http://patchwork.ozlabs.org/api/series/51752/?format=api", "web_url": "http://patchwork.ozlabs.org/project/patchwork/list/?series=51752", "date": "2018-06-24T19:55:49", "name": "[01/11] REST: Check.user is not read-only", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/51752/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/933974/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/933974/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "patchwork@lists.ozlabs.org" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "patchwork@lists.ozlabs.org" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 41DNQB62RFz9ry1\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 25 Jun 2018 05:57:54 +1000 (AEST)", "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 41DNQB4S2FzF15L\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 25 Jun 2018 05:57:54 +1000 (AEST)", "from fossa.birch.relay.mailchannels.net\n\t(fossa.birch.relay.mailchannels.net [23.83.209.62])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 41DNNJ0W1KzF153\n\tfor <patchwork@lists.ozlabs.org>;\n\tMon, 25 Jun 2018 05:56:15 +1000 (AEST)", "from relay.mailchannels.net (localhost [127.0.0.1])\n\tby relay.mailchannels.net (Postfix) with ESMTP id 4862B412D8\n\tfor <patchwork@lists.ozlabs.org>;\n\tSun, 24 Jun 2018 19:56:13 +0000 (UTC)", "from one.mxroute.com (unknown [100.96.31.16])\n\t(Authenticated sender: 5xi41l16bi)\n\tby relay.mailchannels.net (Postfix) with ESMTPA id 00BE241849\n\tfor <patchwork@lists.ozlabs.org>;\n\tSun, 24 Jun 2018 19:56:11 +0000 (UTC)", "from one.mxroute.com (one-outgoing.mxroute.com [172.19.51.240])\n\t(using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)\n\tby 0.0.0.0:2500 (trex/5.15.2); Sun, 24 Jun 2018 19:56:13 +0000" ], "Authentication-Results": [ "ozlabs.org;\n\tdmarc=none (p=none dis=none) header.from=that.guru", "ozlabs.org;\n\tdkim=fail reason=\"key not found in DNS\" (0-bit key;\n\tunprotected) header.d=that.guru header.i=@that.guru\n\theader.b=\"D6gfq4PW\"; dkim-atps=neutral", "lists.ozlabs.org;\n\tdmarc=none (p=none dis=none) header.from=that.guru", "lists.ozlabs.org;\n\tdkim=fail reason=\"key not found in DNS\" (0-bit key;\n\tunprotected) header.d=that.guru header.i=@that.guru\n\theader.b=\"D6gfq4PW\"; dkim-atps=neutral", "lists.ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=that.guru\n\t(client-ip=23.83.209.62; helo=fossa.birch.relay.mailchannels.net;\n\tenvelope-from=stephen@that.guru; receiver=<UNKNOWN>)", "lists.ozlabs.org;\n\tdmarc=none (p=none dis=none) header.from=that.guru", "lists.ozlabs.org;\n\tdkim=fail reason=\"key not found in DNS\" (0-bit key;\n\tunprotected) header.d=that.guru header.i=@that.guru\n\theader.b=\"D6gfq4PW\"; dkim-atps=neutral" ], "X-Sender-Id": [ "5xi41l16bi|x-authuser|stephen@that.guru", "5xi41l16bi|x-authuser|stephen@that.guru" ], "X-MC-Relay": "Neutral", "X-MailChannels-SenderId": "5xi41l16bi|x-authuser|stephen@that.guru", "X-MailChannels-Auth-Id": "5xi41l16bi", "X-Inform-Versed": "65244cd81d919453_1529870172180_846933244", "X-MC-Loop-Signature": "1529870172180:4096205795", "X-MC-Ingress-Time": "1529870172180", "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=that.guru;\n\ts=default;\n\th=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:\n\tSender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:\n\tContent-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:\n\tResent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:\n\tList-Subscribe:List-Post:List-Owner:List-Archive;\n\tbh=e4uCUP7J2WxCitaFPmWkiEgVRg/uarnfaMByN3VCSps=;\n\tb=D6gfq4PWefwx9BKE+Ofn1+zX9Z\n\tcqn73PezPbfSb656nsOArCgurOKhir2ccdXH3sTXEsK2M+0vqAhdbmLlQijzxrhs00ENI8jxO8Ozf\n\tBUPBiTubZFPWfHM/J2+mXEefmuI3vzpoOB3CoI+piGxfz1TKTiFEEsv1Vkr8maFu96BTlgmDWmNsm\n\tRsRrZGNtQYSz5/ESZmOSMfeIsku1QNkFBRgqxD29oieFB4foyXyEE5aHrNRdpU+lwDTjNzgqh7QpC\n\tm2jE/33SHCv3mquuxUSrWH+4f+vm+A8yUfIk6nrw3mVif6IXBcy9W9j2vk7YuPA2+B4Xh1OVEseFo\n\tCmqm/mXg==;", "From": "Stephen Finucane <stephen@that.guru>", "To": "patchwork@lists.ozlabs.org", "Subject": "[PATCH 07/11] Add support for Django 2.0", "Date": "Sun, 24 Jun 2018 20:55:53 +0100", "Message-Id": "<20180624195557.19909-7-stephen@that.guru>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20180624195557.19909-1-stephen@that.guru>", "References": "<20180624195557.19909-1-stephen@that.guru>", "X-AuthUser": "stephen@that.guru", "X-BeenThere": "patchwork@lists.ozlabs.org", "X-Mailman-Version": "2.1.26", "Precedence": "list", "List-Id": "Patchwork development <patchwork.lists.ozlabs.org>", "List-Unsubscribe": "<https://lists.ozlabs.org/options/patchwork>,\n\t<mailto:patchwork-request@lists.ozlabs.org?subject=unsubscribe>", "List-Archive": "<http://lists.ozlabs.org/pipermail/patchwork/>", "List-Post": "<mailto:patchwork@lists.ozlabs.org>", "List-Help": "<mailto:patchwork-request@lists.ozlabs.org?subject=help>", "List-Subscribe": "<https://lists.ozlabs.org/listinfo/patchwork>,\n\t<mailto:patchwork-request@lists.ozlabs.org?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Errors-To": "patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org", "Sender": "\"Patchwork\"\n\t<patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>" }, "content": "Nothing too complicated here except for the addition of a new compat\nwrapper, which will be removed again shortly. According to the Django\nrelease notes, Django should function with Python 3.4. However, it was\nnot possible to get this functioning due to the below error:\n\n Traceback (most recent call last):\n File \".../patchwork/manage.py\", line 11, in <module>\n ...\n File \".../django/db/models/fields/related.py\", line 313, in contribute_to_class\n 'app_label': cls._meta.app_label.lower(),\n TypeError: unsupported operand type(s) for %: 'bytes' and 'dict'\n\nThis does not appear to be an issue with Patchwork but the exact root\ncause has not been identified. As a result, only Python 3.5 and 3.6 are\nmarked as supported for this Django version.\n\nAs this is the first Python 3-only dependency we have, we need to start\nmaking use of the 'python_version' environment marker.\n\nSigned-off-by: Stephen Finucane <stephen@that.guru>\n---\n releasenotes/notes/django-2-0-support-807980866ca16b77.yaml | 5 +++++\n requirements-dev.txt | 3 ++-\n requirements-prod.txt | 3 ++-\n tox.ini | 5 ++++-\n 4 files changed, 13 insertions(+), 3 deletions(-)\n create mode 100644 releasenotes/notes/django-2-0-support-807980866ca16b77.yaml", "diff": "diff --git a/releasenotes/notes/django-2-0-support-807980866ca16b77.yaml b/releasenotes/notes/django-2-0-support-807980866ca16b77.yaml\nnew file mode 100644\nindex 00000000..5c206739\n--- /dev/null\n+++ b/releasenotes/notes/django-2-0-support-807980866ca16b77.yaml\n@@ -0,0 +1,5 @@\n+---\n+features:\n+ - |\n+ `Django 2.0 <https://docs.djangoproject.com/en/2.0/releases/2.0/>`_ is now\n+ supported.\ndiff --git a/requirements-dev.txt b/requirements-dev.txt\nindex 8bad8f07..f4ad751a 100644\n--- a/requirements-dev.txt\n+++ b/requirements-dev.txt\n@@ -1,4 +1,5 @@\n-Django>=1.11,<2.0\n+Django>=1.11,<2.1; python_version >= '3.4'\n+Django>=1.11,<2.0; python_version < '3.0'\n djangorestframework>=3.4,<3.9\n django-filter>=1.0,<1.2\n -r requirements-test.txt\ndiff --git a/requirements-prod.txt b/requirements-prod.txt\nindex c30688cc..e7a75354 100644\n--- a/requirements-prod.txt\n+++ b/requirements-prod.txt\n@@ -1,4 +1,5 @@\n-Django>=1.11,<2.0\n+Django>=1.11,<2.1; python_version >= '3.4'\n+Django>=1.11,<2.0; python_version < '3.0'\n djangorestframework>=3.4,<3.9\n django-filter>=1.0,<1.2\n psycopg2>=2.7,<2.8\ndiff --git a/tox.ini b/tox.ini\nindex 5f3d7e72..4eef4c44 100644\n--- a/tox.ini\n+++ b/tox.ini\n@@ -1,6 +1,6 @@\n [tox]\n minversion = 2.0\n-envlist = pep8,docs,py{27,34,35,36}-django111\n+envlist = pep8,docs,py{27,34}-django111,py{35,36}-django{111,20}\n skipsdist = True\n \n [testenv]\n@@ -9,6 +9,9 @@ deps =\n django111: django>=1.11,<2.0\n django111: djangorestframework>=3.6,<3.9\n django111: django-filter>=1.0,<1.2\n+ django20: django>=2.0,<2.1\n+ django20: djangorestframework>=3.7,<3.9\n+ django20: django-filter>=1.1,<1.2\n setenv =\n DJANGO_SETTINGS_MODULE = patchwork.settings.dev\n PYTHONDONTWRITEBYTECODE = 1\n", "prefixes": [ "07/11" ] }