get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2218318,
    "url": "http://patchwork.ozlabs.org/api/patches/2218318/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260401001459.19159-8-vfazio@gmail.com/",
    "project": {
        "id": 42,
        "url": "http://patchwork.ozlabs.org/api/projects/42/?format=api",
        "name": "Linux GPIO development",
        "link_name": "linux-gpio",
        "list_id": "linux-gpio.vger.kernel.org",
        "list_email": "linux-gpio@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260401001459.19159-8-vfazio@gmail.com>",
    "list_archive_url": null,
    "date": "2026-04-01T00:14:57",
    "name": "[libgpiod,8/9] bindings: python: add a lint dependency group",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "aedb2994f3330f4aea520949475c9e92ea2d7284",
    "submitter": {
        "id": 78694,
        "url": "http://patchwork.ozlabs.org/api/people/78694/?format=api",
        "name": "Vincent Fazio",
        "email": "vfazio@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260401001459.19159-8-vfazio@gmail.com/mbox/",
    "series": [
        {
            "id": 498263,
            "url": "http://patchwork.ozlabs.org/api/series/498263/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=498263",
            "date": "2026-04-01T00:14:50",
            "name": "[libgpiod,1/9] bindings: python: build_tests: do not fallback to distutils",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498263/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2218318/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218318/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-gpio+bounces-34517-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-gpio@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=ha1JDEKR;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=linux-gpio+bounces-34517-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"ha1JDEKR\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.210.43",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com"
        ],
        "Received": [
            "from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fllyh45Xhz1yGH\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 01 Apr 2026 11:21:16 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 05B783095D4D\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  1 Apr 2026 00:18:13 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id D44DF191F98;\n\tWed,  1 Apr 2026 00:18:12 +0000 (UTC)",
            "from mail-ot1-f43.google.com (mail-ot1-f43.google.com\n [209.85.210.43])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 6232918FDBE\n\tfor <linux-gpio@vger.kernel.org>; Wed,  1 Apr 2026 00:18:11 +0000 (UTC)",
            "by mail-ot1-f43.google.com with SMTP id\n 46e09a7af769-7d7e5e8c907so4038976a34.0\n        for <linux-gpio@vger.kernel.org>;\n Tue, 31 Mar 2026 17:18:11 -0700 (PDT)",
            "from Zephyrus.localdomain ([131.93.209.211])\n        by smtp.gmail.com with ESMTPSA id\n 46e09a7af769-7da0a7ea668sm9173679a34.19.2026.03.31.17.18.09\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Tue, 31 Mar 2026 17:18:09 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775002692; cv=none;\n b=rAGL1ivT67ytuJZaIRH48Vkg/8W2Fs9e3c6+l9p8Re1IOdW1cCSJp3JhWLei8oYzaJl520kSG7ot4sU6n1LlK62VPdnV4jiv2dRdb6P8WztyoZuiZuczc8BO94BvsNab9vkkot3C/NdF/rhuV/bPp+1SvcQSLZXWIIxn4hhjXoo=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775002692; c=relaxed/simple;\n\tbh=jU2I4IDsW/iXaE6JtlKi3yq1FX55/FlZF+POX2UkflY=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=AR1BA2ccL8p+PSnofcNeG2fDEtYg5lyBIvmpvH4oP3T4GK8wj8LECg5de10MdDt3EeQX1kps/Iyn4yIO4vGfp9BS9D7qHB/ysmLeLt7kkbpN0XWAcido9lVaqNAKQSHCTN5H8dBqlGgLS5oXRy82/oSAFMJCucXWifOmGgIW+oY=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=ha1JDEKR; arc=none smtp.client-ip=209.85.210.43",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1775002690; x=1775607490;\n darn=vger.kernel.org;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=/AO9Facv5e2syws+D9c3Vyu7qA/Dpq9fbNKfI+/7CRY=;\n        b=ha1JDEKRXaZWLUSd7vajD2JCDeaeJvqWPtuqygiWu0c0OBzVbYWnKSCKI0+A9VAQCv\n         NsWVMYylKKJ7iXHHc916JTO21HouqrEnefLBqnsvCwHE/3iEI0I+ffnUetCx0pfE9zj2\n         PwXcPp9D9ZLy2x/n7NfnkN7m16zBu/oHGvDWwzASdVoRgsZzkr/MMoI6rSQA3MRcnX03\n         h4MU09qWeTx9n2tgv7Pes6G0ySSgekwog37lng8uwc4k0Oxpi9kC2la1YvemUbE4hk+8\n         egEk2iQWt/4BYcJZBvzBn5QZp4T8RBnp/5Bc6anYTRnLFesPhi75azcV64rDI8lC34SE\n         Jt6Q==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1775002690; x=1775607490;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=/AO9Facv5e2syws+D9c3Vyu7qA/Dpq9fbNKfI+/7CRY=;\n        b=YPdNghzE0TWmWpmk2Xmo8SblQ3LRn1nHRsVMynUgRPsB9zlpTiJ/vz9B8pl9/FZpIQ\n         HqB7IbjsSr+ZoVQRfuRYjJe+pVJ4RG6r9oDSOpw5BVCCIVc8VVb4zf+Pm5E6tI+55+G1\n         d8iPIUCSD9PIresXbPZy1Ssw9h3A97z2ZDJYxw/pFd4B9its0zn8J+6f3yphJCzRYgG2\n         Pl0TgiFjr+Gp2bXFSwmrhZqlIU6PxRS7rQrQcCG8/sb2LSBS8D+2W9aE2cBhLWAMAoa6\n         nfXJ8lP/Gng0B4NA+hC+RcXw1om6sMS+dE701Fi/Rzgf0t+agcw+oi1IW/fp6XDxr+35\n         J96A==",
        "X-Gm-Message-State": "AOJu0YxDaJaC3nZVnG6QYxZY8LYPgFxQFcwpIJ+YBAqEv49KgK9OW1bb\n\tqH0zCaq2e1riPvxQKIfaVcK3dmhA/WJ9FWlOIpt1G96uQDcD7eLtTUZ0kUT47g==",
        "X-Gm-Gg": "ATEYQzzvk5/U0pJmn8mRzzwgdtrzksfqgP8rb/MA/IK6AUYwSU8Q+tgPudoBYeWmr1m\n\tMikDI6q+KNg9Rc1DIMmDW1BZ8mor4/Q022Xz9pbKC9MT1tjoizobF7TmLwjCMp9LzwFWcpSpQh6\n\tEnoSXLJrDHj4E+Nh5YGq0U4jFAO9PPfZoXkCFMv3k9MZBzve4Gbw8Ip1eIVAy0dnNjOO9AJ9UwJ\n\t2eZjAkKoDqJ3z9mo8nEDh9TAn/ga9uUGGyK5AfnHS/2ywyB1GzFa+c4emyxzegUcl7r3/UIj5t1\n\tCZtcq+Y8el3nrEEHqjhtQQ9Lm6dlLjrPAA9dioUUXkBYX2UbXozphVmIohUktnSyVzAkHH4nXGr\n\tS5x5a1ESCflAeKMLoaqf3Ew9DUFXiCwSx7MwwwUfWOmtnicUTTEx1NVPrc3Wm3bqDT5H451TlxM\n\t513bTyJu3+BzuvMDJyVPt+E5itJIrcOg9CpxZDH2wqbA83uZ9jiwagRNlPZ619/Q==",
        "X-Received": "by 2002:a05:6830:81ca:b0:7d7:f59f:3d18 with SMTP id\n 46e09a7af769-7db991dd421mr1091258a34.2.1775002690052;\n        Tue, 31 Mar 2026 17:18:10 -0700 (PDT)",
        "From": "Vincent Fazio <vfazio@gmail.com>",
        "To": "linux-gpio@vger.kernel.org",
        "Cc": "Vincent Fazio <vfazio@gmail.com>",
        "Subject": "[libgpiod][PATCH 8/9] bindings: python: add a lint dependency group",
        "Date": "Tue, 31 Mar 2026 19:14:57 -0500",
        "Message-ID": "<20260401001459.19159-8-vfazio@gmail.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260401001459.19159-1-vfazio@gmail.com>",
        "References": "<20260401001459.19159-1-vfazio@gmail.com>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-gpio@vger.kernel.org",
        "List-Id": "<linux-gpio.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-gpio+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-gpio+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "Specify useful dependencies for linting the bindings and related code.\n\nThe group can be installed with `pip install --group lint`.\n\nAs part of this group, specify version ranges for mypy and ruff to keep\nlinting consistent until new minimal versions of Python are targeted or\nuntil the new annual style introduced by ruff is chosen.\n\nSigned-off-by: Vincent Fazio <vfazio@gmail.com>\n---\n bindings/python/README.md      | 4 +++-\n bindings/python/pyproject.toml | 3 +++\n 2 files changed, 6 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/bindings/python/README.md b/bindings/python/README.md\nindex 89c824c..70428c0 100644\n--- a/bindings/python/README.md\n+++ b/bindings/python/README.md\n@@ -120,10 +120,12 @@ When making changes, ensure type checks and linting still pass:\n ```\n python3 -m venv venv\n . venv/bin/activate\n-pip install mypy ruff\n+pip install --group lint\n mypy; ruff format; ruff check\n ```\n \n+Note that pip >=25.1 is necessary for `--group` support.\n+\n Ideally the gpiod library will continue to pass strict checks:\n \n ```\ndiff --git a/bindings/python/pyproject.toml b/bindings/python/pyproject.toml\nindex 9961f3c..3255e89 100644\n--- a/bindings/python/pyproject.toml\n+++ b/bindings/python/pyproject.toml\n@@ -33,6 +33,9 @@ classifiers = [\n Homepage = \"https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git\"\n Issues = \"https://github.com/brgl/libgpiod/issues/\"\n \n+[dependency-groups]\n+lint = [\"mypy>=1.18.1\", \"ruff~=0.15.0\", \"types-setuptools\", \"packaging\"]\n+\n [tool.setuptools]\n platforms = [\"linux\"]\n include-package-data = false\n",
    "prefixes": [
        "libgpiod",
        "8/9"
    ]
}