Show a patch.

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

{
    "id": 17658,
    "url": "https://patchwork.libcamera.org/api/patches/17658/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/17658/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20221022062310.2545463-8-paul.elder@ideasonboard.com>",
    "date": "2022-10-22T06:23:06",
    "name": "[libcamera-devel,v2,07/11,WIP] utils: libtuning: parsers: Add yaml parser",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "e6a3eb3d3b624e46102b4b62a44b5f412a702949",
    "submitter": {
        "id": 17,
        "url": "https://patchwork.libcamera.org/api/people/17/?format=api",
        "name": "Paul Elder",
        "email": "paul.elder@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/17658/mbox/",
    "series": [
        {
            "id": 3573,
            "url": "https://patchwork.libcamera.org/api/series/3573/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3573",
            "date": "2022-10-22T06:22:59",
            "name": "utils: tuning: Add a new tuning infrastructure",
            "version": 2,
            "mbox": "https://patchwork.libcamera.org/series/3573/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/17658/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/17658/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>",
        "X-Original-To": "parsemail@patchwork.libcamera.org",
        "Delivered-To": "parsemail@patchwork.libcamera.org",
        "Received": [
            "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id B8813C0DA4\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSat, 22 Oct 2022 06:23:35 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 465FB62EE0;\n\tSat, 22 Oct 2022 08:23:35 +0200 (CEST)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id A6D3362ECF\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 22 Oct 2022 08:23:33 +0200 (CEST)",
            "from pyrite.rasen.tech (h175-177-042-159.catv02.itscom.jp\n\t[175.177.42.159])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 2DE2A106;\n\tSat, 22 Oct 2022 08:23:31 +0200 (CEST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1666419815;\n\tbh=eUZ5iClDjXH4FfCv+fF4bKigaJ2ZOi/J+wjubQODn7k=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=i+5iEyTibKDWC8zvKrNrBGX74tHs5fCF9JTycOq9qHr369+dSJ7YMZzKm3Vomyis3\n\tTr56a5KmOPf4CK5DrtGWY1HTeLt6zcx0ZKEk6EBKgtDHvXluZfmKbiLVpaXnaqAjXv\n\t+huxfSh6PI90sWb2Q+w1hJSmem7UW+bM9s1w6EcHFJ9d+Ce8k5DH5Tfo62LBKq3TUE\n\tOcAIsikeITSNftWCB3ZKYgTwPxllqhvwgPU7UG9O/t0bh/OXa8L9hpVtomc4fjpiKL\n\tMdnrlnUr3Gfmc9+exWehn9E1ZVnDFpZt+Qb/+2MhzNMSV5X4yDRE3bTAvYlLeGnICK\n\typEP4+2L/I9cw==",
            "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1666419813;\n\tbh=eUZ5iClDjXH4FfCv+fF4bKigaJ2ZOi/J+wjubQODn7k=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=Qrt91SA9SCAyTePXpIgmBneC/npMzF5c8t8/9Ycldk7HFnUOwWHpvo6HLMqwmVzWg\n\tkG+0sz9Skru053LoQTGNP5YzoVItSdS7Xc2SHOxDt1GqqI3R37s0pSQWzZLrYhrTLa\n\thlHgpFX46oAN/sGPLrF+ozxZGwDQX4/GfivQ/2b4="
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"Qrt91SA9\"; dkim-atps=neutral",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Sat, 22 Oct 2022 15:23:06 +0900",
        "Message-Id": "<20221022062310.2545463-8-paul.elder@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.30.2",
        "In-Reply-To": "<20221022062310.2545463-1-paul.elder@ideasonboard.com>",
        "References": "<20221022062310.2545463-1-paul.elder@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH v2 07/11] [WIP] utils: libtuning: parsers:\n\tAdd yaml parser",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "<libcamera-devel.lists.libcamera.org>",
        "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>",
        "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>",
        "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>",
        "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>",
        "From": "Paul Elder via libcamera-devel <libcamera-devel@lists.libcamera.org>",
        "Reply-To": "Paul Elder <paul.elder@ideasonboard.com>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Add a parser to libtuning for parsing configuration files in yaml\nformat.\n\nSigned-off-by: Paul Elder <paul.elder@ideasonboard.com>\n\n---\nObviously this doesn't work. Technically it's fine because the only user\nof the yaml parser at the moment works fine with no input configuration\nfile.\n---\n utils/tuning/libtuning/parsers/__init__.py    |  1 +\n utils/tuning/libtuning/parsers/yaml_parser.py | 15 +++++++++++++++\n 2 files changed, 16 insertions(+)\n create mode 100644 utils/tuning/libtuning/parsers/yaml_parser.py",
    "diff": "diff --git a/utils/tuning/libtuning/parsers/__init__.py b/utils/tuning/libtuning/parsers/__init__.py\nindex 9d20d2fc..022c1e5d 100644\n--- a/utils/tuning/libtuning/parsers/__init__.py\n+++ b/utils/tuning/libtuning/parsers/__init__.py\n@@ -3,3 +3,4 @@\n # Copyright (C) 2022, Paul Elder <paul.elder@ideasonboard.com>\n \n from libtuning.parsers.raspberrypi_parser import RaspberryPiParser\n+from libtuning.parsers.yaml_parser import YamlParser\ndiff --git a/utils/tuning/libtuning/parsers/yaml_parser.py b/utils/tuning/libtuning/parsers/yaml_parser.py\nnew file mode 100644\nindex 00000000..e2ce6e20\n--- /dev/null\n+++ b/utils/tuning/libtuning/parsers/yaml_parser.py\n@@ -0,0 +1,15 @@\n+# SPDX-License-Identifier: GPL-2.0-or-later\n+#\n+# Copyright (C) 2022, Paul Elder <paul.elder@ideasonboard.com>\n+\n+from .parser import Parser\n+\n+\n+class YamlParser(Parser):\n+    def __init__(self):\n+        super().__init__()\n+\n+    # todo Implement this (it's fine for now as we don't need a config for\n+    # rkisp1 LSC)\n+    def _parse(self, config_file, modules):\n+        return {}, []\n",
    "prefixes": [
        "libcamera-devel",
        "v2",
        "07/11",
        "WIP"
    ]
}