get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2218315,
    "url": "http://patchwork.ozlabs.org/api/patches/2218315/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260401001459.19159-2-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-2-vfazio@gmail.com>",
    "list_archive_url": null,
    "date": "2026-04-01T00:14:51",
    "name": "[libgpiod,2/9] bindings: python: build_tests: simplify the Distribution",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "9af3447e7e845703c3d6049d10fd9552dce5a764",
    "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-2-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/2218315/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218315/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-gpio+bounces-34511-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=Af+cONTr;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-gpio+bounces-34511-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=\"Af+cONTr\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.210.46",
            "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\n [IPv6:2600:3c0a:e001:db::12fc:5321])\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 4fllyW13xPz1yGH\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 01 Apr 2026 11:21:07 +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 B7420308FCC2\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 824FE18FC97;\n\tWed,  1 Apr 2026 00:18:07 +0000 (UTC)",
            "from mail-ot1-f46.google.com (mail-ot1-f46.google.com\n [209.85.210.46])\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 185F154774\n\tfor <linux-gpio@vger.kernel.org>; Wed,  1 Apr 2026 00:18:06 +0000 (UTC)",
            "by mail-ot1-f46.google.com with SMTP id\n 46e09a7af769-7d86eb7c854so3354874a34.3\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.04\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Tue, 31 Mar 2026 17:18:04 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775002687; cv=none;\n b=b8zctZxdOr7LQsWdVMBdb3VittAP4o7NfadhNOYLmuby/X+4ueS9ZfFC63ncHVFLyQMB+U9gzYvNBIr9AxCyHGfOT786zNE+JwR9QUAEGTRoSd7pnxC8Yg9CuhBFXjYJnwxxoxbTUZHP9VamKnMZGVrhs3C35600/VHOEDJgjFw=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775002687; c=relaxed/simple;\n\tbh=l0Bv8BrQhuVyXhZhgGCq6BbY8pbLkuf6wjlqIXJ3ALQ=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=BwHJuGIKFE/EYYoQ4OnbB8V8179rGkUPJ7peZFJOt/lcUbrvPHmdJIECdUpivVgYinnSAndneI1CRVpNXySqaEcwjVs4ZFy/pyJJE+8sMks8zOAGUB0te98qFBUfWJxoRDIQuLXmX7GGLpuzbqiY+PiKNHC918hm/XI50X1v2mQ=",
        "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=Af+cONTr; arc=none smtp.client-ip=209.85.210.46",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1775002685; x=1775607485;\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=fYtaPAq6EGoYGrjgDwyPGSvyGWDhdwC+5bNVbZzqlZE=;\n        b=Af+cONTrklV0f9GAvqnUJPxOPzbvgDgVwu/Xhaadoezu+PeRsnX3UraOJcCB1xAyqj\n         zh9GdGJJ6AQNXn/vqenavPx9tSm/II6Nci12Nw5bs4l2luqtjtDdjPwY3IWIkd4ii/kg\n         klvmpWUAUivWfgYLHR6RuJcgmGzPOKTRVqkw0FRBWKAXcJaQZGLpGHRStG72I++dZIXP\n         BjdLSuoBn+mtbJk6HLaTwmuqptlLZRjRPvEcpw+8HcZX+dd9uXC77G6QFl1AklpSta1c\n         2m8sjG+3UyrqVfNG4r9WHWGMpQZcCTJlM4Gn4xhD1LBovvVUOFcUxB3N5TYmFXGOh9Wh\n         7nEg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1775002685; x=1775607485;\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=fYtaPAq6EGoYGrjgDwyPGSvyGWDhdwC+5bNVbZzqlZE=;\n        b=CeUTYF+8XBsZ+Wc0VvrIytwGeNlvryLAWafO1BMFr7DDuwmh9+AE/oVWtPIkqFr+r7\n         mcnRjJe5uEN4ZoT/8aGP7NBYoYqHuWo//Oiav2DqwOQk8lAk5iuMt38PgQLo5D7XmODx\n         Mu8l9F7NFn8IP4Bowgo1RgwA1+sCwfRDCkZ9a/seJnYh5NNnZNvJs6BN6RcG9N3t6r4s\n         SdjwM1SsVUxpoHcpkaSbpZlMoi5VPBCRxoiRIeMw2EZIiSmI0zG39AHQIyCOYhqWwZnK\n         Tnyxemz7cFMLq3ACMf+lR0QEmo3fEWZ0RKPFk0XsXcovrtwGvG6uoZMvM7Kpp3Fl9+Lt\n         9BMQ==",
        "X-Gm-Message-State": "AOJu0YzHBQZqBbSjq494LjX3jfg/GCpF35vDf0Knequnp1qRPCahmgGD\n\t5WugLO6f7mL70qzdevGoRB05JAdkV+Jym2RVKTcl6QYNfiYQIk5lDjEncOLy7w==",
        "X-Gm-Gg": "ATEYQzyxaSIM+eo+oEL0oBK4/1cVzBMdcvirCX0b/zNiQe/scQ9dj8qCI+cuFHR20vS\n\tr+gkvWaIt5ZgABEQYgwdr7CNQwONZP3GscMT6UG87xCuh4zgluqoyku6tyLV7oHTQVJpcT+a/6x\n\tp54IuUo1lCLN0p/v3Ca3SphXWoihSOEMqRmzH7Lwt5yyI1rhipiYILjfkxlHnGKiDRAKnUTiS3P\n\tCCJQwto7/C2udNrr/b0gr6ca4Zn9mUmftz3NqUAetke21Z9slmxvJcMibvPE1HnwN8MtuVCfJQe\n\thn67z/UkRI5tXzlJfZ70veC6DsVl/V7tKVQ9vkVM2QBWGJHsO4Gpjbi2tUijiWrXWwC8wjnGPdY\n\t+ZnZ3906Z/MZG1KcKRTXTAEtrdWUmIMvUwW2yGrz7CHuKvGV+hrWZFdNZF+ike3IvMz6dhLRc0h\n\twKYejIl9mayle9z7alKqAdDUu/FHhMBLW7vpDblZhZjmwttV0wPYbMjyJCxqHlzA==",
        "X-Received": "by 2002:a05:6830:dc3:b0:7d7:d702:401c with SMTP id\n 46e09a7af769-7db994f8c45mr1092982a34.32.1775002684854;\n        Tue, 31 Mar 2026 17:18:04 -0700 (PDT)",
        "From": "Vincent Fazio <vfazio@gmail.com>",
        "To": "linux-gpio@vger.kernel.org",
        "Cc": "Vincent Fazio <vfazio@gmail.com>",
        "Subject": "[libgpiod][PATCH 2/9] bindings: python: build_tests: simplify the\n Distribution",
        "Date": "Tue, 31 Mar 2026 19:14:51 -0500",
        "Message-ID": "<20260401001459.19159-2-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": "The version, package, and platform information is not necessary to\ncompile and stage the extensions, so drop that information.\n\nIf we need to add it back, we can use `dist.parse_config_files()` to\nparse information from the pyproject.toml.\n\nSigned-off-by: Vincent Fazio <vfazio@gmail.com>\n---\n bindings/python/build_tests.py | 6 ------\n 1 file changed, 6 deletions(-)",
    "diff": "diff --git a/bindings/python/build_tests.py b/bindings/python/build_tests.py\nindex 6375b29..77e38ba 100644\n--- a/bindings/python/build_tests.py\n+++ b/bindings/python/build_tests.py\n@@ -27,9 +27,6 @@ logging.configure()\n TOP_SRCDIR = getenv(\"TOP_SRCDIR\", \"../../\")\n TOP_BUILDDIR = getenv(\"TOP_BUILDDIR\", \"../../\")\n \n-# __version__\n-with open(\"gpiod/version.py\", \"r\") as fd:\n-    exec(fd.read())\n \n # The tests are run in-place with PYTHONPATH set to bindings/python\n # so we need the gpiod extension module too.\n@@ -72,10 +69,7 @@ system_ext = Extension(\n \n dist = Distribution(\n     {\n-        \"name\": \"gpiod\",\n         \"ext_modules\": [gpiosim_ext, system_ext, gpiod_ext],\n-        \"version\": __version__,\n-        \"platforms\": [\"linux\"],\n     }\n )\n \n",
    "prefixes": [
        "libgpiod",
        "2/9"
    ]
}