Cover Letter Detail
Show a cover letter.
GET /api/covers/2225982/?format=api
{ "id": 2225982, "url": "http://patchwork.ozlabs.org/api/covers/2225982/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/cover/20260422012041.39933-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": "<20260422012041.39933-1-vfazio@gmail.com>", "list_archive_url": null, "date": "2026-04-22T01:20:32", "name": "[libgpiod,0/9] bindings: python: modernize C extensions", "submitter": { "id": 78694, "url": "http://patchwork.ozlabs.org/api/people/78694/?format=api", "name": "Vincent Fazio", "email": "vfazio@gmail.com" }, "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/cover/20260422012041.39933-1-vfazio@gmail.com/mbox/", "series": [ { "id": 500906, "url": "http://patchwork.ozlabs.org/api/series/500906/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=500906", "date": "2026-04-22T01:20:32", "name": "bindings: python: modernize C extensions", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/500906/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/covers/2225982/comments/", "headers": { "Return-Path": "\n <linux-gpio+bounces-35321-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=PCi2ESLP;\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-35321-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=\"PCi2ESLP\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.210.47", "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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0hJc4hp9z1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 11:21:36 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 8B1333022F93\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 01:20:59 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 32373275870;\n\tWed, 22 Apr 2026 01:20:58 +0000 (UTC)", "from mail-ot1-f47.google.com (mail-ot1-f47.google.com\n [209.85.210.47])\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 A0FA71624C5\n\tfor <linux-gpio@vger.kernel.org>; Wed, 22 Apr 2026 01:20:56 +0000 (UTC)", "by mail-ot1-f47.google.com with SMTP id\n 46e09a7af769-7d4be94eeacso4914262a34.2\n for <linux-gpio@vger.kernel.org>;\n Tue, 21 Apr 2026 18:20:56 -0700 (PDT)", "from Zephyrus.localdomain ([131.93.209.211])\n by smtp.gmail.com with ESMTPSA id\n 006d021491bc7-69464eeee56sm9876036eaf.8.2026.04.21.18.20.54\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 21 Apr 2026 18:20:54 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776820858; cv=none;\n b=GGSzwnWQ3S6ZRKSjoY7CwgItkhDRKd9mhEkaeZTQqIC6MT1gjh5kH0h/5PLstyXsdp5RUT+I0iSOpMNQQNzpD2Ai9w+tw8UYS/A9zcsFEd0LyUO7CZxKfIckqkUgX7b8MsR7JxHBiNU8ZCUv1jxce1eoX9uaOSuWbYchLLx+s3s=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776820858; c=relaxed/simple;\n\tbh=oSRxT/cv3h/E1PLyEkK8E6gxJF8QJms9k9oqry5h70U=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=S0FgFigspUuxERBH6nv4NTOAb1HIwHbpgz749BFUO9L3Qyl2AWvhh+A1WCMwbMoMR7OHniu/IsT4oXc6Z1RKnsFdhmGI60FvKrgUuHc+GSJE7dLcZBhu2SjbWGOknsvcMWs4Rum/VwbP9QzqLq8Wrq9zhpPWVFl9p/BNshYgtWg=", "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=PCi2ESLP; arc=none smtp.client-ip=209.85.210.47", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1776820855; x=1777425655;\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=eBcw60sRfgDz9cjspwXBwAnDTvVQRLJYYLalj6KXa6w=;\n b=PCi2ESLPxEWfMzYdwM+5hQYhDjuBPmi9DhuJe/ySsXl5c79HCOBjzbz0vcGUW/0JpV\n +Rz6/XmZ2u2j5xCUUFnP7LZlUJd3Acaob+h2jHh/stmnX/tebefMcVI8tyyidPhkKiK7\n A1hPgXPgxPir5MsS/qFfmKPbxI8ighcbiiGapqWj80nA3IVacXu5iEf6C9XwVFR9Nntm\n H3Js4IZIHP2Iv7di4JVVBrq3bRNv+UAmfBG8hJKRexRSH0UKX+euvbBHPqeqqJdXEqUf\n 3fCAb4iy+f1nYFsa3vrWtLgbgJi0x9Y0n6s6BD3vzFPPvpu5vxBgAwQTuKKL1SltAVAL\n EaDA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776820855; x=1777425655;\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=eBcw60sRfgDz9cjspwXBwAnDTvVQRLJYYLalj6KXa6w=;\n b=rXLk4AQrm9meq0k8aKHp5w8ueFOp4Sbk+PTV04qggZR56/C08cK6PL9oUw8MLL4krl\n C7Wl2mswzmQBYN26qi2tZH8PoWSxqDzmZb7C3Qm6KQ3wFpFCGW0qO2w1k7aDVT62bQSU\n 2eqM51D7iASUPJgXJj4oWf21BH8kZ2dID5akJKm0q3j/EGD9Z7qIb5OhBSXtWjhpQtwW\n H9f55Q3nlXOsjXydD1GNONQiN3ZJHt5vXtPzCh2HOtJ9jbai9bGn0qHrRfq1EGBz/DKT\n G6malU+DWmIrEN5R8Zj2p8mURpOcNDQdDr3WC63CppZTLTY7nLr7WDjv18k1mRKLtZSA\n XyEg==", "X-Gm-Message-State": "AOJu0YxnPrRtCF7UyJ8yXo7CgNMHeXxkb/g5Mtxpk5AtIzaVBQUIbNIE\n\t7Cf22tPaM86PiSn94WQtxd+0v/a1mJG/VDNS4A52g59P5so1qpnWBHBeuh9pUw==", "X-Gm-Gg": "AeBDieuibgl0/SuwuxRbRFVZVY6cyLhGjANsQgRrQsXTs8Mz9U1XgbvlDbiJ3Vg16tL\n\t1OtWTqc+5VcEZyEFlxixHRWMCGGzn3YLJP0CQMty8MUmxJYQs6hOaf+Olo/1kEklGaRWtgz4js9\n\tHCMOKKxrxp2TJkOul/Ibc1CLmgENZ33duEmbZBc3kzAYo+v7bBn3dOlBs4qSS70xkj0k8kVR/31\n\tj1eOdjtYq57GuRCFyyaj+5XOKj212yxlsKB6neTUqs/WTSBJt3Pj/5KWqkYvgnxb0WA8Cuyotxy\n\tlpok//OdA2vy80M0/dw0NgRGiBcFGTPnsNaG49LC4vhy/B2nexsmR/8mkwk6ZG8gVh4YZuNNbqP\n\toVPC+7wiankWNLoWjCIt7bI+VjeOJFtu9DqF9HSVLrRTgfJtT7JCoRRNBf6L+c49vW1LDWmQ2td\n\thwMIyzIZ22FjWiVEj1K1i7UPZkXWDGquOtvtpWb8VIpwnmNGqGASNE3VFDZ5BHeCnsI7EyYo/h", "X-Received": "by 2002:a4a:e90e:0:b0:685:e786:bfb5 with SMTP id\n 006d021491bc7-69462ed385amr11396655eaf.39.1776820855284;\n Tue, 21 Apr 2026 18:20:55 -0700 (PDT)", "From": "Vincent Fazio <vfazio@gmail.com>", "To": "linux-gpio@vger.kernel.org", "Cc": "Vincent Fazio <vfazio@gmail.com>", "Subject": "[libgpiod][PATCH 0/9] bindings: python: modernize C extensions", "Date": "Tue, 21 Apr 2026 20:20:32 -0500", "Message-ID": "<20260422012041.39933-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": "This series performs some minor cleanup of the C extension modules and\nmigrates the module defintions to multi-phase intitialization (PEP 489).\n\nPatch 1 makes `chip_get_line_name` consistent with other functions.\n\nPatches 2 & 3 avoid calling back into python to perform C level object\ncleanup.\n\nPatch 4 introduces no real functional change but simplifies the code to\nget the same result.\n\nPatch 5 applies suggestions from from a utility maintained by a CPython\ncore developer to help modernize macro/function usage.\n\nPatch 6 conditionally compiles support for using a standard CPython\nfunction over a backported version bundled within the C extension.\n\nPatches 7-9 migrate the C extensions to use multi-phase initialization\nas described in PEP 489 [0]. While not strictly necessary for enabling\nfree-threaded builds, it makes adding support more straighforward and\nsets the stage for both PEP 793 [1] which soft-deprecates PyInit_* and\nPEP 803 [2] which could simplify wheel builds.\n\nPatches have been tested against the full matrix of supported versions:\n https://github.com/vfazio/libgpiod/actions/runs/24752901690\n\n[0]: https://peps.python.org/pep-0489/\n[1]: https://peps.python.org/pep-0793/\n[2]: https://peps.python.org/pep-0803/\n\nSigned-off-by: Vincent Fazio <vfazio@gmail.com>\n---\nVincent Fazio (9):\n bindings: python: use Py_RETURN_NONE in chip_get_line_name\n bindings: python: avoid PyObject_CallMethod during chip finalize\n bindings: python: avoid PyObject_CallMethod during request finalize\n bindings: python: simplify disallowing _ext.Request from being created\n bindings: python: use suggestions from upgrade_pythoncapi.py\n bindings: python: use PyImport_ImportModuleAttrString when available\n bindings: python: migrate the gpiod._ext module to multi-phase init\n bindings: python: tests: migrate the system module to multi-phase init\n bindings: python: tests: migrate the gpiosim module to multi-phase\n init\n\n bindings/python/gpiod/ext/chip.c | 35 +++---\n bindings/python/gpiod/ext/common.c | 5 +-\n bindings/python/gpiod/ext/internal.h | 10 +-\n bindings/python/gpiod/ext/module.c | 68 ++++++------\n bindings/python/gpiod/ext/request.c | 26 ++---\n bindings/python/tests/gpiosim/ext.c | 153 +++++++++++++++++----------\n bindings/python/tests/system/ext.c | 7 +-\n 7 files changed, 176 insertions(+), 128 deletions(-)" }