get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/106593/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 106593,
    "url": "http://patchwork.dpdk.org/api/patches/106593/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dts/patch/20220126195200.40058-1-ohilyard@iol.unh.edu/",
    "project": {
        "id": 3,
        "url": "http://patchwork.dpdk.org/api/projects/3/?format=api",
        "name": "DTS",
        "link_name": "dts",
        "list_id": "dts.dpdk.org",
        "list_email": "dts@dpdk.org",
        "web_url": "",
        "scm_url": "git://dpdk.org/tools/dts",
        "webscm_url": "http://git.dpdk.org/tools/dts/",
        "list_archive_url": "https://inbox.dpdk.org/dts",
        "list_archive_url_format": "https://inbox.dpdk.org/dts/{}",
        "commit_url_format": ""
    },
    "msgid": "<20220126195200.40058-1-ohilyard@iol.unh.edu>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20220126195200.40058-1-ohilyard@iol.unh.edu",
    "date": "2022-01-26T19:52:00",
    "name": "[v1] framework: Add makefile deprecation warning",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "2578f79bc1c133d5de57b2a11f221bb8b14df43a",
    "submitter": {
        "id": 1829,
        "url": "http://patchwork.dpdk.org/api/people/1829/?format=api",
        "name": "Owen Hilyard",
        "email": "ohilyard@iol.unh.edu"
    },
    "delegate": null,
    "mbox": "http://patchwork.dpdk.org/project/dts/patch/20220126195200.40058-1-ohilyard@iol.unh.edu/mbox/",
    "series": [
        {
            "id": 21388,
            "url": "http://patchwork.dpdk.org/api/series/21388/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dts/list/?series=21388",
            "date": "2022-01-26T19:52:00",
            "name": "[v1] framework: Add makefile deprecation warning",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/21388/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/106593/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/106593/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dts-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id DF520A04AF;\n\tWed, 26 Jan 2022 20:52:06 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id CCB5E42756;\n\tWed, 26 Jan 2022 20:52:06 +0100 (CET)",
            "from mail-oi1-f225.google.com (mail-oi1-f225.google.com\n [209.85.167.225])\n by mails.dpdk.org (Postfix) with ESMTP id F09924274B\n for <dts@dpdk.org>; Wed, 26 Jan 2022 20:52:05 +0100 (CET)",
            "by mail-oi1-f225.google.com with SMTP id s127so1722286oig.2\n for <dts@dpdk.org>; Wed, 26 Jan 2022 11:52:05 -0800 (PST)",
            "from postal.iol.unh.edu (postal.iol.unh.edu.\n [2606:4100:3880:1234::84])\n by smtp-relay.gmail.com with ESMTPS id i14sm49807oon.21.2022.01.26.11.52.04\n (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n Wed, 26 Jan 2022 11:52:05 -0800 (PST)",
            "from iol.unh.edu (unknown [IPv6:2606:4100:3880:1257::105d])\n by postal.iol.unh.edu (Postfix) with ESMTP id 9F1A56052500;\n Wed, 26 Jan 2022 14:52:04 -0500 (EST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu;\n s=unh-iol;\n h=from:to:cc:subject:date:message-id:mime-version\n :content-transfer-encoding;\n bh=EEFbgqEFT6y1IgxvGxJB1suO7aRF5HWqmxlQHlw1W0I=;\n b=fw+ULS2fIniPRtXnzqWUovebud5KWU/1I12O6NLRZ/c7ybPXW7tPIDS5TqoVHyTAJM\n RbEGBZfvc1vyJbxY55fYu24mxO7/YZMBvhFAIMAL3vkwf8qRMhRr1xkC4aL5+35A1FgC\n kGzaauprIOUfPO/zDT/3ngxVzTCShbzvarvlY=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version\n :content-transfer-encoding;\n bh=EEFbgqEFT6y1IgxvGxJB1suO7aRF5HWqmxlQHlw1W0I=;\n b=f25UNq/OBzQxg6Z0Ts52PZkCaUXcUg1150CueZ6qVM5uDzY597OZWH3oTu000Os4tx\n 9iveRZt+nqeI6+ibEwFwyYd8RXUh0WChOqYGq5bQjKE8VDSeOUIqEjG/nkMP5V4jW8AU\n TYN6JFeVSIRhd47UTKb7eGrDTTeTSp61tYKUEHohl54BPAUTmB5A2mSvhCPseAjI/AHB\n PYvjZsjV6WuPgepBgXdrbtYgxuLmnYq92gw1AE5VwvPyxJpXG8lohx8cJg5lWsfpb748\n b+OtY8P8pxGIQKORNlCvn6TE0dMll6RjD0BtepWYZ3rE5kD6tTlzig5qaFyhp5I2Pu1W\n ANDQ==",
        "X-Gm-Message-State": "AOAM533fKYAIXIzg44DUj28nQ6JtS9ga5PDtL/RwtwsYtKuwHCz6gB6Z\n WoWvlJ6TKCFPxRAq+EHznJRfExqLHijV4iEdzEDVVqqYUbHB1fWI9qolkJrGQNTvbOD11NnOM5R\n U4FA4qAIO5rC437pl1042xUBuoGL75yiW4NjJin6YR6t9f9xWvg1Z+WXNP7owJZTZDlJSqaDiA6\n CWZJx37zi1qt3FfA==",
        "X-Google-Smtp-Source": "\n ABdhPJxtkR41H4VKmNVL6uWise+mQTUFWfyNS1oVKiHXEn75IVvd/jvP9nKXCpLyewIxR8o8kNPWyW/RNE+O",
        "X-Received": "by 2002:a05:6808:120f:: with SMTP id\n a15mr101630oil.239.1643226725154;\n Wed, 26 Jan 2022 11:52:05 -0800 (PST)",
        "X-Relaying-Domain": "iol.unh.edu",
        "From": "ohilyard@iol.unh.edu",
        "To": "dts@dpdk.org",
        "Cc": "lijuan.tu@intel.com,\n\tOwen Hilyard <ohilyard@iol.unh.edu>",
        "Subject": "[PATCH v1] framework: Add makefile deprecation warning",
        "Date": "Wed, 26 Jan 2022 14:52:00 -0500",
        "Message-Id": "<20220126195200.40058-1-ohilyard@iol.unh.edu>",
        "X-Mailer": "git-send-email 2.30.2",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "test suite reviews and discussions <dts.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dts/>",
        "List-Post": "<mailto:dts@dpdk.org>",
        "List-Help": "<mailto:dts-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dts-bounces@dpdk.org"
    },
    "content": "From: Owen Hilyard <ohilyard@iol.unh.edu>\n\nAdds the following deprecation warning to DTS when running a makefile\nbuild:\n\nMakefile builds have been deprecated and will be removed in the next release.\nPlease switch to using meson builds.\n\nSigned-off-by: Owen Hilyard <ohilyard@iol.unh.edu>\n---\n framework/dts.py | 12 +++++++++---\n 1 file changed, 9 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/framework/dts.py b/framework/dts.py\nindex 892aa1fc..1baddb84 100644\n--- a/framework/dts.py\n+++ b/framework/dts.py\n@@ -35,6 +35,7 @@ import copy  # copy module for duplicate variable\n import imp\n import inspect  # load attribute\n import json  # json format\n+import logging\n import os  # operation system module\n import re  # regular expressions module\n import signal  # signal module for debug mode\n@@ -77,7 +78,7 @@ stats_report = None\n log_handler = None\n \n \n-def dts_parse_param(config, section):\n+def dts_parse_param(config, section, log_handler):\n     \"\"\"\n     Parse execution file parameters.\n     \"\"\"\n@@ -94,11 +95,16 @@ def dts_parse_param(config, section):\n \n     parameters = config.get(section, 'parameters').split(':')\n     drivername = config.get(section, 'drivername').split('=')[-1]\n-    # get the build method, default is makefile\n+    # get the build method, default is meson\n     try:\n         buildtype = config.get(section, 'build_type').split('=')[-1]\n     except:\n         buildtype = 'meson'\n+\n+    if buildtype == 'makefile':\n+        log_handler.warning(\"Makefile builds have been deprecated and will be removed in the next release.\")\n+        log_handler.warning(\"Please switch to using meson builds.\")\n+\n     buildtype = buildtype.lower()\n     settings.save_global_setting(settings.HOST_BUILD_TYPE_SETTING, buildtype)\n \n@@ -588,7 +594,7 @@ def run_all(config_file, pkgName, git, patch, skip_setup,\n     # for all Execution sections\n     for section in config.sections():\n         crbInsts = list()\n-        dts_parse_param(config, section)\n+        dts_parse_param(config, section, log_handler)\n \n         # verify if the delimiter is good if the lists are vertical\n         duts, targets, test_suites = dts_parse_config(config, section)\n",
    "prefixes": [
        "v1"
    ]
}