get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2218311,
    "url": "http://patchwork.ozlabs.org/api/patches/2218311/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260401001459.19159-1-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-1-vfazio@gmail.com>",
    "list_archive_url": null,
    "date": "2026-04-01T00:14:50",
    "name": "[libgpiod,1/9] bindings: python: build_tests: do not fallback to distutils",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "425264f8585e9014da5c70e9bcb087736a0ca859",
    "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-1-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/2218311/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218311/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-gpio+bounces-34510-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=LFaMj5ql;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.232.135.74; helo=sto.lore.kernel.org;\n envelope-from=linux-gpio+bounces-34510-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=\"LFaMj5ql\"",
            "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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])\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 4fllv64ygVz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 01 Apr 2026 11:18:10 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id E8E5C30225DA\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  1 Apr 2026 00:18:07 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id DF43218A92F;\n\tWed,  1 Apr 2026 00:18:06 +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 6BBAA1FB1\n\tfor <linux-gpio@vger.kernel.org>; Wed,  1 Apr 2026 00:18:05 +0000 (UTC)",
            "by mail-ot1-f43.google.com with SMTP id\n 46e09a7af769-7d7ebe11bffso5137969a34.0\n        for <linux-gpio@vger.kernel.org>;\n Tue, 31 Mar 2026 17:18:05 -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.02\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Tue, 31 Mar 2026 17:18:03 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775002686; cv=none;\n b=BgcLviox5q2kHEXU+neFJB9VNFsPo07Fe5WMsYR59SmlSPzmR3PGLKB5TA9ZS9jaLtB6k2GzHUNKrW5vez/ZtPTGsG4dd4jJgsdv5arYAH0IUcfUtrnpJdyqUJXbViKqVBm3WO+NGZkTc8zbS3okE4g7/LsrUBXJmbPPXJrht7E=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775002686; c=relaxed/simple;\n\tbh=VkEN60okmK9i2KtGQBWrPze/iExIv8ZInWpndSEujlA=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=mEBhAFRrexjXGbDcmjjqQEFHc2IHRowQWi4/hw+TPJxeisnMxMhGGKbPL3rFoOmrA14v90k5Qv01TOuO2rzrVTxygcCvvtgDASfvNZUoDEvbiSfUC9jyv9uylEoM3Yvqp+nJXPbfwJvdFVY4BitV5yWusgS5QfNG7Q94OwywYqU=",
        "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=LFaMj5ql; 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=1775002684; x=1775607484;\n darn=vger.kernel.org;\n        h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n         :to:from:from:to:cc:subject:date:message-id:reply-to;\n        bh=GWISWA4ajN4PQ6cr94Gr2HPzzv2YKzY2AWcYClVo8eI=;\n        b=LFaMj5qlSzC+r/U6eTv1niSwPaNTx93/fKrF94VEuwuHhKn53YXxARD/H6CAwKMOYZ\n         n3u9xJjXpDhw4m87/rKwbUzjlB8LaPTJI519bYgitxUSGwdYLdJ6rUMvLZ4EkxR9zd53\n         g+e9SmfJyQtlyCl036l5sEfJIS99oi7lmsfTDJjXjVvQOnxaQqiMXjxQwFIpbl077tKE\n         K5r/adndEUp2WrDNSbcrVMLJ2Y+LBEz8Hfur9MKzJom4jnOmo+i5vSw24ENwUQtkub5U\n         b7VTj/Q8pYczdigE/UjPiZNpFFqf+oeRVJbmJJrtAU3vnr5xnEfWkPtz6QBtt5ktMuri\n         12Sg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1775002684; x=1775607484;\n        h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n         :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=GWISWA4ajN4PQ6cr94Gr2HPzzv2YKzY2AWcYClVo8eI=;\n        b=ZbjGINLGwGxWBeCdwe0ibWGxuQ6WJxW43SRQFXabvekXJa4BUkb2I6PXlPh3waM1U6\n         s2Jph+NQxPMvx5YmGfa/b6GMQz6sjI/usN7a3EiUUpCtx+12ESqmImpA/vbErmFYG5km\n         1W0ohGvUsXJbJ12JR24oNK0a8g7w5jdyPZHJsubolFPKU5x2M0+QbGlVWTmeJEB26nLe\n         k9e1sjK4GOTVHqaMpjySpDySV4qjBVZE/45jz6tRkAOIct7L6HYrRuPhjtemktWrUSPi\n         wpoBnWcCkSYd5hhkZU0SwEk1jFhWB9EqW6hoe6jz0OeXmWpOdTIJTznqVoAAJ0EeUGhU\n         IDtQ==",
        "X-Gm-Message-State": "AOJu0YwQcwuf49ORRC7QSNi5oJk5nCjCxlq1v+ZCe7YY16I12zZICbb4\n\tOnceFIOUVqgL/Mp4iPpdiWndr4bnXVZiTo73lGrqFO5w7SDhaGz4AIYMyB36bQ==",
        "X-Gm-Gg": "ATEYQzz1cqRgKMTQPLstK1gkT1Oz2Kj3tAkHXPMtb9UpBtH+sDOnVQ38zYxbNPDrs6k\n\tPCwc/4p9onUH+qt6jSkeKquhZBbTJillAfPwZekEFlR8UWC/Bj7dtNTzktq2ebuVrKPZKpnARfG\n\tQJx8kXesC/Y85oWynrRdbD9+hoL254xKH2ZSXDcKYePhyes6ycTm1peCWAeKHwUIkqTAGgykONL\n\tEZn/w1YtABxM97cKCMleyU8VNoWkGvvvGnmwKVIfYHpfO3WxzyGFuR4Ro4fy7ARqWLWqaaSjpSr\n\tcAg1wUXSzQmyKM7PGghPgsRuIozngZxLifWurE1JI7PqRXb6im2bTb/AOC+5tUCD0Nqfw2l61dE\n\tfpZUiedmC4/YD4MgF1kMzcQfdtAvUvnHfZ/AOavFLqW4LCBjh1B5Rs3YNmDDHZblMPl4yPSt6Hs\n\tiGKfkhnpw/Dg0ekY3HgdV2hCKMXaiRqlDdyK/nYfvNyvZLTMumcstLoMcZBobYgQ==",
        "X-Received": "by 2002:a05:6830:6f90:b0:7d7:4fc9:5204 with SMTP id\n 46e09a7af769-7db991d86bbmr1120144a34.2.1775002683940;\n        Tue, 31 Mar 2026 17:18:03 -0700 (PDT)",
        "From": "Vincent Fazio <vfazio@gmail.com>",
        "To": "linux-gpio@vger.kernel.org",
        "Cc": "Vincent Fazio <vfazio@gmail.com>",
        "Subject": "[libgpiod][PATCH 1/9] bindings: python: build_tests: do not fallback\n to distutils",
        "Date": "Tue, 31 Mar 2026 19:14:50 -0500",
        "Message-ID": "<20260401001459.19159-1-vfazio@gmail.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "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": "Make the assumption that the build host has setuptools>=60.2.0 which\nexposes the logging module and remove references to distutils.\n\nThis conforms to setuptools' logging recommendation [0].\n\n[0]: https://setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html#prefer-setuptools\nSigned-off-by: Vincent Fazio <vfazio@gmail.com>\n---\n bindings/python/build_tests.py | 17 +++--------------\n 1 file changed, 3 insertions(+), 14 deletions(-)",
    "diff": "diff --git a/bindings/python/build_tests.py b/bindings/python/build_tests.py\nindex ebe1727..6375b29 100644\n--- a/bindings/python/build_tests.py\n+++ b/bindings/python/build_tests.py\n@@ -19,9 +19,11 @@ import glob\n import tempfile\n from os import getenv, path\n \n-from setuptools import Distribution, Extension\n+from setuptools import Distribution, Extension, logging\n from setuptools.command.build_ext import build_ext\n \n+logging.configure()\n+\n TOP_SRCDIR = getenv(\"TOP_SRCDIR\", \"../../\")\n TOP_BUILDDIR = getenv(\"TOP_BUILDDIR\", \"../../\")\n \n@@ -77,19 +79,6 @@ dist = Distribution(\n     }\n )\n \n-try:\n-    from setuptools.logging import configure\n-\n-    configure()\n-except ImportError:\n-    try:\n-        from distutils.log import DEBUG, set_verbosity\n-\n-        set_verbosity(DEBUG)\n-    except ImportError:\n-        # We can still build the tests, it will just be very quiet.\n-        pass\n-\n with tempfile.TemporaryDirectory(prefix=\"libgpiod-\") as temp_dir:\n     command = build_ext(dist)\n     command.inplace = True\n",
    "prefixes": [
        "libgpiod",
        "1/9"
    ]
}