Patch Detail
Show a patch.
GET /api/patches/15926/?format=api
{ "id": 15926, "url": "https://patchwork.libcamera.org/api/patches/15926/?format=api", "web_url": "https://patchwork.libcamera.org/patch/15926/", "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": "<20220517143325.71784-3-tomi.valkeinen@ideasonboard.com>", "date": "2022-05-17T14:33:14", "name": "[libcamera-devel,v2,02/13] py: meson: add pystubs build target", "commit_ref": null, "pull_url": null, "state": "rejected", "archived": false, "hash": "4f1b70bf0d165961d6339ebb1fd1000706cd7d35", "submitter": { "id": 109, "url": "https://patchwork.libcamera.org/api/people/109/?format=api", "name": "Tomi Valkeinen", "email": "tomi.valkeinen@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/15926/mbox/", "series": [ { "id": 3116, "url": "https://patchwork.libcamera.org/api/series/3116/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3116", "date": "2022-05-17T14:33:12", "name": "Misc Python bindings patches", "version": 2, "mbox": "https://patchwork.libcamera.org/series/3116/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/15926/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/15926/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 C0999C3256\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 17 May 2022 14:33:55 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 83EE86041E;\n\tTue, 17 May 2022 16:33:55 +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 744736041E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 17 May 2022 16:33:52 +0200 (CEST)", "from deskari.lan (91-156-85-209.elisa-laajakaista.fi\n\t[91.156.85.209])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id DC7968D3;\n\tTue, 17 May 2022 16:33:51 +0200 (CEST)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1652798035;\n\tbh=OFNUJIPjBd8sjbcQV4mr3FTMsE4thcfDX+7+k+bf3BU=;\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=kZywUa3tSBr2U4npmphvyJOyYAkzYdfmcu/hqqyNBYAfCF1X6Ttd9H9Yk/myIw4NX\n\tv0NhkZazHtlH39H6DsqmTE9BZQvBMaBOyL6UbK8PbjkBfjU/e9Qu8lVOxZlM2ghL6L\n\tyxUzCMAS5dCQDmXS7dWG3uibFUiJ53U+sY+fRq7GR3IORPPdgCqvCzxWNDPyO62Lfg\n\tU7fY+g1AFt5iM9s1GR9bVxkPFnNSCAJ4nfLa90+BkNVpNDXPfg3LnnehOYDZx2Z7Lt\n\tCyEx56Z31xC+xap6i+XjOOuiVfn8ZctP4TjuBXlFlFpQfm7iQNQM2EOhtH5zkyeDE6\n\tXyLLoUug8vNiw==", "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1652798032;\n\tbh=OFNUJIPjBd8sjbcQV4mr3FTMsE4thcfDX+7+k+bf3BU=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=HAw3lSbRv46v1Ato8MzIoThtQj8QcKWImmsdOOSWYcMIDEhy1W1yzZ+PLZmIyt4D3\n\te+cJC0TIZA+gAEn+sFGFgQn0rGLdpIJURtreGuD1M9SqpJbHZLTW5DTsibdE2fe7iT\n\t7OBPy6DP81pLPgw5xq8IXRTOSlEGsPKV7GRoTDCE=" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"HAw3lSbR\"; dkim-atps=neutral", "To": "libcamera-devel@lists.libcamera.org,\n\tDavid Plowman <david.plowman@raspberrypi.com>,\n\tKieran Bingham <kieran.bingham@ideasonboard.com>,\n\tLaurent Pinchart <laurent.pinchart@ideasonboard.com>,\n\tJacopo Mondi <jacopo@jmondi.org>", "Date": "Tue, 17 May 2022 17:33:14 +0300", "Message-Id": "<20220517143325.71784-3-tomi.valkeinen@ideasonboard.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20220517143325.71784-1-tomi.valkeinen@ideasonboard.com>", "References": "<20220517143325.71784-1-tomi.valkeinen@ideasonboard.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v2 02/13] py: meson: add pystubs build\n\ttarget", "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": "Tomi Valkeinen via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>", "Reply-To": "Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Add a 'pystubs' build target for building the python stubs.\n\nFor now this needs to be ran manually. I didn't figure out how to\ngenerate the stubs after the libcamera bindings are built.\n\nSigned-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>\n---\n src/py/libcamera/meson.build | 14 +++++++++++++-\n 1 file changed, 13 insertions(+), 1 deletion(-)", "diff": "diff --git a/src/py/libcamera/meson.build b/src/py/libcamera/meson.build\nindex 38f619d0..32e74504 100644\n--- a/src/py/libcamera/meson.build\n+++ b/src/py/libcamera/meson.build\n@@ -60,6 +60,18 @@ run_command('ln', '-fsT', '../../../../src/py/libcamera/__init__.py',\n \n install_data(['__init__.py'], install_dir : destdir)\n \n-# \\todo Generate stubs when building. See https://peps.python.org/pep-0484/#stub-files\n+# \\todo Generate stubs when building, and install them.\n+# See https://peps.python.org/pep-0484/#stub-files\n # Note: Depends on pybind11-stubgen. To generate pylibcamera stubs:\n # $ PYTHONPATH=build/src/py pybind11-stubgen --no-setup-py -o build/src/py libcamera\n+# The target below can be ran manually, but how to create a meson target that\n+# is run if pycamera is built?\n+\n+stubgen = find_program('pybind11-stubgen', required : false)\n+\n+if stubgen.found()\n+ run_target('pystubs',\n+ depends: pycamera,\n+ env: {'PYTHONPATH': meson.project_build_root() / 'src' / 'py'},\n+ command: [stubgen, '--no-setup-py', '-o', meson.project_build_root() / 'src' / 'py', 'libcamera'])\n+endif\n", "prefixes": [ "libcamera-devel", "v2", "02/13" ] }