From patchwork Fri Jun 9 17:49:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1793124 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Qd7ry2kCPz20Ty for ; Sat, 10 Jun 2023 03:50:10 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 0FFC483BE9; Fri, 9 Jun 2023 17:50:08 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 0FFC483BE9 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ru7OgA7a8APA; Fri, 9 Jun 2023 17:50:07 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 209A483C05; Fri, 9 Jun 2023 17:50:06 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 209A483C05 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 22AF11BF37B for ; Fri, 9 Jun 2023 17:50:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 056FD83BE9 for ; Fri, 9 Jun 2023 17:50:04 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 056FD83BE9 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16BLexeAxntn for ; Fri, 9 Jun 2023 17:50:02 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 9DB1883BD4 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by smtp1.osuosl.org (Postfix) with ESMTPS id 9DB1883BD4 for ; Fri, 9 Jun 2023 17:50:01 +0000 (UTC) Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-30af159b433so1987644f8f.3 for ; Fri, 09 Jun 2023 10:50:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686332999; x=1688924999; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BqMNE5ru7VzBCpMQ+b/VXta3aDgHJmIfzW/C48Pqmqo=; b=HN184qjZ8rQXPDxuoM4QjQe8aCpmb+YoCz1Eg/iDexX6YSmyJfIivofSHi09QP62Va oWzKc1zihalRkqS5UmXb9ODa4rjULm+VmDFciDxsxBhwwrZmoXNSq3HId+JhlZO3x8V5 u2xF4NyD9ZJUf7QamG+0d9RhLu/oMzE7dr9oQmzI8Prya9JIubq3ktq4p66AsrzWMt6j UPWwKxTobl3wcMYLJ13lXzVYcBJ5bPYYjJ1yHQsRVd6qGH+yMxhK1zOfaX8Eru+tkEko ppnG5+AEOf1d7/58h9RZnhg/c3CFwR+xVJibA+gCpXaDmqW7klFtsfO4bkEl3QMfsCsb /x2g== X-Gm-Message-State: AC+VfDwIRHlGthpN0cmK/KxrrcmWYvHNuoxlhT8vKSNDOVS71OPh6l7G PuGMEHmv+ujWbyC7RgU9VALAUa33NQs= X-Google-Smtp-Source: ACHHUZ4bVamaCNXPDYa9Mz+rJGTbcqamLPEutlidTSZ+niFr6ZuSPD2mOE9a3Ik/GZhkgG+23CFdnw== X-Received: by 2002:a5d:5919:0:b0:30a:b4e1:a8a7 with SMTP id v25-20020a5d5919000000b0030ab4e1a8a7mr1802749wrd.64.1686332999283; Fri, 09 Jun 2023 10:49:59 -0700 (PDT) Received: from P-NTS-Evian.home (2a01cb05945b7e009bdc688723a24f31.ipv6.abo.wanadoo.fr. [2a01:cb05:945b:7e00:9bdc:6887:23a2:4f31]) by smtp.gmail.com with ESMTPSA id a4-20020adffac4000000b00307c46f4f08sm5048877wrs.79.2023.06.09.10.49.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jun 2023 10:49:58 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Fri, 9 Jun 2023 19:49:52 +0200 Message-Id: <20230609174955.409551-1-romain.naour@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686332999; x=1688924999; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=BqMNE5ru7VzBCpMQ+b/VXta3aDgHJmIfzW/C48Pqmqo=; b=MhfDrQX+Z9EehNC5WVuunZX10n/sXXOsE1itmeMichMA6+oyNFUvCRc1WWi8Ai6pdU MS0mGJyHf+B5sEBW7PHz+pPb9xhFz08AcYUiUHEMXzk8wfLVuAdMDesOjdZGICKb+rlS pOOG14jZgTObIeODk2RUqssKXoWxQ1Ax8rbrRZ7nTMwaggw3rudT+z5nDnkFykTTHT/7 a7MOzzdASxNWXFMB6MfLzE85RDeFM5fU1cgjUuzSdfNr79RsLrougjhgAktccsv+Ri0c 5GTBbx1GqOTCCWBH0FOBvLqUB83pnDFtfsDbmDV2x3gauXY3BawVXC1sJlv72djVy91C sJGw== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=MhfDrQX+ Subject: [Buildroot] [PATCH 1/4] support/testing: add python-mako runtime test X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Romain Naour Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" This new runtime test allows to reproduce the issue reported by https://bugs.busybox.net/show_bug.cgi?id=15628 with a simple python script. Traceback (most recent call last): File "/bin/piglit", line 107, in import framework.programs.summary as summary File "/usr/lib64/piglit/framework/programs/summary.py", line 30, in from framework import summary, status, core, backends, exceptions File "/usr/lib64/piglit/framework/summary/__init__.py", line 31, in from .html_ import html, feat File "/usr/lib64/piglit/framework/summary/html_.py", line 37, in from mako.lookup import TemplateLookup File "/usr/lib/python3.11/site-packages/mako/lookup.py", line 13, in File "/usr/lib/python3.11/site-packages/mako/exceptions.py", line 292, in File "/usr/lib/python3.11/site-packages/mako/exceptions.py", line 289, in _install_highlighting File "/usr/lib/python3.11/site-packages/mako/exceptions.py", line 277, in _install_fallback File "/usr/lib/python3.11/site-packages/mako/filters.py", line 14, in ModuleNotFoundError: No module named 'markupsafe Signed-off-by: Romain Naour --- support/testing/tests/package/sample_python_mako.py | 1 + support/testing/tests/package/test_python_mako.py | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 support/testing/tests/package/sample_python_mako.py create mode 100644 support/testing/tests/package/test_python_mako.py diff --git a/support/testing/tests/package/sample_python_mako.py b/support/testing/tests/package/sample_python_mako.py new file mode 100644 index 0000000000..aedae7ebad --- /dev/null +++ b/support/testing/tests/package/sample_python_mako.py @@ -0,0 +1 @@ +from mako import runtime diff --git a/support/testing/tests/package/test_python_mako.py b/support/testing/tests/package/test_python_mako.py new file mode 100644 index 0000000000..b6075bde6a --- /dev/null +++ b/support/testing/tests/package/test_python_mako.py @@ -0,0 +1,12 @@ +from tests.package.test_python import TestPythonPackageBase + + +class TestPythonPy3Mako(TestPythonPackageBase): + __test__ = True + config = TestPythonPackageBase.config + \ + """ + BR2_PACKAGE_PYTHON3=y + BR2_PACKAGE_PYTHON_MAKO=y + """ + sample_scripts = ["tests/package/sample_python_mako.py"] + timeout = 30 From patchwork Fri Jun 9 17:49:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1793126 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Qd7sQ6z5tz20Ty for ; Sat, 10 Jun 2023 03:50:34 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 27F5C84274; Fri, 9 Jun 2023 17:50:33 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 27F5C84274 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i6FPzhexpvEm; Fri, 9 Jun 2023 17:50:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 5B8D384192; Fri, 9 Jun 2023 17:50:31 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 5B8D384192 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id E40B01BF37B for ; Fri, 9 Jun 2023 17:50:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id BD653417F1 for ; Fri, 9 Jun 2023 17:50:04 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org BD653417F1 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5shSvBYwNnCf for ; Fri, 9 Jun 2023 17:50:02 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 886D340127 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by smtp2.osuosl.org (Postfix) with ESMTPS id 886D340127 for ; Fri, 9 Jun 2023 17:50:02 +0000 (UTC) Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-30af20f5f67so1958365f8f.1 for ; Fri, 09 Jun 2023 10:50:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686333000; x=1688925000; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=51sKJndqVFOiwttZhVJeHE91ero+wZ5cewy90L17QYE=; b=R1Vuuo/K3VQXIpVHJl61HxwlN5oXWpQaxCvS/tsU5UDJeiIl6OjU/d2qjaXojrsOke wjNZkuhJUd0acgTKb4T4dHpBwbvWtl4zKxIvCDQ5/LydIhIxj1FzpDc13Ycokv0PHSlr CGICJPqvy3tnJtemzqjMs9v8G9ngDYyPBjqBVoJQf0bF/67CeBkb9HqYzDx1HYkm4N2k h76532jUpkFCwBlU66q0+awTOUOxXHjRxstcyXnKD8NXLsbmvy9gIpGREvAPirOQXD2r X3oUBqe0LMJn5c7WL7qJxDBBLNt4trjTPQjn1c6/I0NXZhKnbRYVe6cq9fFHypqEYjm+ 6XCQ== X-Gm-Message-State: AC+VfDy7BiCCpfa8Uj7gbgZXJFUnAaGoQ04eSr+WYihz+JXIhcTojfMZ fJMueT1cmvDITEzIiN5wEe37XnWtpLk= X-Google-Smtp-Source: ACHHUZ7ggd59J87Q4PdwFnb4fJaT4cYgwzN0nEEpYYo7H+ibSmM+YzVjMCs6H1GBW0dJNFf4d7rl9A== X-Received: by 2002:a05:6000:545:b0:30a:e954:fde2 with SMTP id b5-20020a056000054500b0030ae954fde2mr1358976wrf.53.1686333000225; Fri, 09 Jun 2023 10:50:00 -0700 (PDT) Received: from P-NTS-Evian.home (2a01cb05945b7e009bdc688723a24f31.ipv6.abo.wanadoo.fr. [2a01:cb05:945b:7e00:9bdc:6887:23a2:4f31]) by smtp.gmail.com with ESMTPSA id a4-20020adffac4000000b00307c46f4f08sm5048877wrs.79.2023.06.09.10.49.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jun 2023 10:49:59 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Fri, 9 Jun 2023 19:49:53 +0200 Message-Id: <20230609174955.409551-2-romain.naour@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230609174955.409551-1-romain.naour@gmail.com> References: <20230609174955.409551-1-romain.naour@gmail.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686333000; x=1688925000; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=51sKJndqVFOiwttZhVJeHE91ero+wZ5cewy90L17QYE=; b=fxtQK/fpdGM+146oCfGGMiFA/P3sMAw8o9bxQS3lwtz7na4b2CzvR7wxwZQ2TaQtS/ JNlWZf6wXYalShirC3GMuaMkYIg98ZBUzWmaPtSGzE7tAErAGxjRf5/5XmAEL8Br5F3y IjKH0LGJDDVshFVOatS7oqa+aF0q2Pdc3Jiy1MSQaI8PyLHaeu2UQJY1/RccFy15qest dqmgduuC1zB+cQH9DhuTDfVJ36T1kFZZgA4oijPxjXj6T0p3dlXBi/+7lBfCt7bC28rA tbbzu4OKnxZ52rLoDdqo0umXB7PEJ6Fayji9Ynr00VpjtHdLzcrJWfgIh5g4RP1id4DD YmVQ== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=fxtQK/fp Subject: [Buildroot] [PATCH 2/4] package/python-mako: add optionnal runtime dependency on python-pygments X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Romain Naour Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Signed-off-by: Romain Naour --- package/python-mako/Config.in | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/package/python-mako/Config.in b/package/python-mako/Config.in index e6a10c9c2e..2e1094189f 100644 --- a/package/python-mako/Config.in +++ b/package/python-mako/Config.in @@ -7,3 +7,14 @@ config BR2_PACKAGE_PYTHON_MAKO for maximum performance. https://pypi.python.org/pypi/Mako + +if BR2_PACKAGE_PYTHON_MAKO + +config BR2_PACKAGE_PYTHON_MAKO_EXT_PYGMENTPLUGIN + bool "mako extension pygmentplugin" + select BR2_PACKAGE_PYTHON_PYGMENTS # runtime + help + Provide python-pygments support for + mako.ext.pygmentplugin + +endif From patchwork Fri Jun 9 17:49:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1793125 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Qd7sB3FFrz20Ty for ; Sat, 10 Jun 2023 03:50:22 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 7915183C1B; Fri, 9 Jun 2023 17:50:20 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 7915183C1B X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FPXcDmk5WP4O; Fri, 9 Jun 2023 17:50:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id B24D083C1A; Fri, 9 Jun 2023 17:50:18 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org B24D083C1A X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 248061BF97F for ; Fri, 9 Jun 2023 17:50:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id F16DB607D6 for ; Fri, 9 Jun 2023 17:50:03 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org F16DB607D6 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JrOuyEVOg5v1 for ; Fri, 9 Jun 2023 17:50:03 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 420C9600C5 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by smtp3.osuosl.org (Postfix) with ESMTPS id 420C9600C5 for ; Fri, 9 Jun 2023 17:50:03 +0000 (UTC) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3f623adec61so21148165e9.0 for ; Fri, 09 Jun 2023 10:50:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686333001; x=1688925001; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=koa7CWVEn52jl/9ZiOscyyhusQKI3ENeMYOeL1tn3oE=; b=RFG4CZRO78hJpyuP3W+wnv77Mj1NFrIf6fA3kNOt5Bs2EjpiV7J0kz533hKkJTQHpk GN1+gW9o83BP+GZvcogGWdvJQDYA5nvpYj4n/aZhA1MJlmNbA0Mjw9yzD0VRCqMZ53kK sq98a7pJu9z5GUwsz41TLp89qgi9v8PkjLWczHPGD5Ak4HhfXEMFH1auKs82HF1acChy L4/2tZMIEo1ppTm8eEfgeaDtrpt2BlygRxWZCbz4y7fROM56ai6c3yqjzJXF8jCkHOcz BJsm3ixVxzGA7XJCF4632sph8E0gH4Dlhg1rzP+Mke7tVLVH2m9r7XmAuGtGWBt3QnFp Y7Yg== X-Gm-Message-State: AC+VfDxgTaxpImBcgnutYpRJ/7oDc+lSZAw9awLZmRYxQM98RZ9Qmkl5 g3LL6Xs/2bxUQTKrbP4oTNrSW1pbW+Y= X-Google-Smtp-Source: ACHHUZ5L6QMbL9qPBufNG5lmWssANun8UdMU9X6+6MKu7cnxj4PmbIR6MmHsQYyrvcbtL/OqtfIHqQ== X-Received: by 2002:a5d:6646:0:b0:30e:3ccf:d4b3 with SMTP id f6-20020a5d6646000000b0030e3ccfd4b3mr1491462wrw.28.1686333001035; Fri, 09 Jun 2023 10:50:01 -0700 (PDT) Received: from P-NTS-Evian.home (2a01cb05945b7e009bdc688723a24f31.ipv6.abo.wanadoo.fr. [2a01:cb05:945b:7e00:9bdc:6887:23a2:4f31]) by smtp.gmail.com with ESMTPSA id a4-20020adffac4000000b00307c46f4f08sm5048877wrs.79.2023.06.09.10.50.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jun 2023 10:50:00 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Fri, 9 Jun 2023 19:49:54 +0200 Message-Id: <20230609174955.409551-3-romain.naour@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230609174955.409551-1-romain.naour@gmail.com> References: <20230609174955.409551-1-romain.naour@gmail.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686333001; x=1688925001; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=koa7CWVEn52jl/9ZiOscyyhusQKI3ENeMYOeL1tn3oE=; b=pr780nlpO0Q++h4pNudMJy7cstk2IurVmnVlJ/W9iCMTN9sJi2psZGqyBWTmwBlbuR TwdW8IthcITYq3QtCmL0mLB2/h6tz3sgDU3nVEj0lIsN9SoEZNbGh8/Ci3DHt2gDcnjh UDNiRJxJnDuNKoHdjfc8BM4VFXCOxtZBIr0HGHIil3hC7EhSlQtrZUyxRBQg3YCzXsOm zVJMsJEByGX0Q90ueP/I9IFxIYrh+S4TqzlJ6jkWfimMTY4C7s7vmBW1qStcC/DoEp5z qMxdTFg3DXiGhHns3cl89rahW6NqptFtvCJk1vZb7+UpNg+DCZ3+4aUmpLOo9SMEKv0U Po6Q== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=pr780nlp Subject: [Buildroot] [PATCH 3/4] package/python-mako: add optionnal runtime dependency on python-babel X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Romain Naour Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Signed-off-by: Romain Naour --- package/python-mako/Config.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/python-mako/Config.in b/package/python-mako/Config.in index 2e1094189f..7bba31943e 100644 --- a/package/python-mako/Config.in +++ b/package/python-mako/Config.in @@ -17,4 +17,11 @@ config BR2_PACKAGE_PYTHON_MAKO_EXT_PYGMENTPLUGIN Provide python-pygments support for mako.ext.pygmentplugin +config BR2_PACKAGE_PYTHON_MAKO_EXT_BABELPLUGIN + bool "mako extension babelplugin" + select BR2_PACKAGE_PYTHON_BABEL # runtime + help + Provide python-babel support for + mako.ext.babelplugin + endif From patchwork Fri Jun 9 17:49:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1793127 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Qd7sg4qJxz20Ty for ; Sat, 10 Jun 2023 03:50:47 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id CDA2983C1A; Fri, 9 Jun 2023 17:50:45 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org CDA2983C1A X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q4VdxmZpOYqc; Fri, 9 Jun 2023 17:50:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id E368B842B3; Fri, 9 Jun 2023 17:50:43 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org E368B842B3 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id ECF701BF37B for ; Fri, 9 Jun 2023 17:50:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id C3F75600C5 for ; Fri, 9 Jun 2023 17:50:04 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org C3F75600C5 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m91J4Rm09bv5 for ; Fri, 9 Jun 2023 17:50:04 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org E09FF600C7 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by smtp3.osuosl.org (Postfix) with ESMTPS id E09FF600C7 for ; Fri, 9 Jun 2023 17:50:03 +0000 (UTC) Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-30ae4ec1ac7so1438546f8f.2 for ; Fri, 09 Jun 2023 10:50:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686333002; x=1688925002; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6iir68XajEe2nCCwttcCmU6Xg6GVCZfKSl2FZgLa/vc=; b=KVWwcQwmRDtyAVryMFfUXN+RGPXoanbz7HPxHE71dcI9ErDOTafWJR6WXUuueyJ4m+ 874SRls/rp7N/4fRd0FGSiJdJuWWcA5FrFGpUIwdeDjHS8tjz4hS2/wm2hyH2pMxIG5Q sJUVvv5H1lt/JmLTdVs+gI0ll1Vt8bf5K2brGYZ0+/RlhRQBKt/wjXIxfhbSNOfYz1ul 4riLm5RwlzGNv7B8s2O+yLBmhKrzuE3896zfyqpqcf+/dFe7r9MHPCJ93cY9kF5fhIny Ije/E0sWCY/V+7FTcbcgeJdWfBJLdcqkcTyGQ6BKsinjPVK1yi2nOYCZu7W2HGxFBmhs 6uTw== X-Gm-Message-State: AC+VfDy9SdfWH1GacIK7o4aDoKzUZa70RcxV7ss+Q+S9RiIIy1Jx5hVi TGllL9sXqi/S8qPRjv854VM7za4jSRQ= X-Google-Smtp-Source: ACHHUZ7FqAp3z5YP9ONjcy3TlziN7N6fZ6x2xj08vDXe/dFR0sfY+zc8Ux7OKD92PiBcnS2nZ0DKRg== X-Received: by 2002:a5d:4e88:0:b0:309:41d8:eec4 with SMTP id e8-20020a5d4e88000000b0030941d8eec4mr1219736wru.39.1686333001927; Fri, 09 Jun 2023 10:50:01 -0700 (PDT) Received: from P-NTS-Evian.home (2a01cb05945b7e009bdc688723a24f31.ipv6.abo.wanadoo.fr. [2a01:cb05:945b:7e00:9bdc:6887:23a2:4f31]) by smtp.gmail.com with ESMTPSA id a4-20020adffac4000000b00307c46f4f08sm5048877wrs.79.2023.06.09.10.50.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jun 2023 10:50:01 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Fri, 9 Jun 2023 19:49:55 +0200 Message-Id: <20230609174955.409551-4-romain.naour@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230609174955.409551-1-romain.naour@gmail.com> References: <20230609174955.409551-1-romain.naour@gmail.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686333002; x=1688925002; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6iir68XajEe2nCCwttcCmU6Xg6GVCZfKSl2FZgLa/vc=; b=XM6ZUVLMXp69LCs4xBguyI7vum4hgynsUpJ6fz+qqdnfMCMVCdeyy/o2wmmsS13omd 4yUBLkQ1PVvnogmTMobLB70x9PMG8R2oXNvNWXOIgn2GgD+CuE2TY9ZtOXpqYmoIRMmP o0JToL0wwxE0RPxkfu+MCa+gvsWebVDHD4CFen3hXj+7z9Ah+POCZWLGiE2XsECOGvX3 h+1G44M8oBbz3hWq0LMq4D51U0i6xw7qSD9r4uzglAd0Fh1TAM818ZASFcfOlCOlrIpG n/mS88kt0U2j0UOEUiuDmFNmXCoa5fqWfw0AA5ivhcLJ07vSEPV+XQB7WfFXt8u07Y91 HyGA== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=XM6ZUVLM Subject: [Buildroot] [PATCH 4/4] support/testing: TestPythonPy3MakoExt: add a test for mako external plugin (pygmentsplugin, babel) X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Romain Naour Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Mako provide some external plugins that requires additionnal and optionnal runtime dependencies. Signed-off-by: Romain Naour --- .../testing/tests/package/sample_python_mako_ext.py | 3 +++ support/testing/tests/package/test_python_mako.py | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 support/testing/tests/package/sample_python_mako_ext.py diff --git a/support/testing/tests/package/sample_python_mako_ext.py b/support/testing/tests/package/sample_python_mako_ext.py new file mode 100644 index 0000000000..5b06a28181 --- /dev/null +++ b/support/testing/tests/package/sample_python_mako_ext.py @@ -0,0 +1,3 @@ +from mako import runtime +import mako.ext.pygmentplugin +import mako.ext.babelplugin diff --git a/support/testing/tests/package/test_python_mako.py b/support/testing/tests/package/test_python_mako.py index b6075bde6a..f1031d1d59 100644 --- a/support/testing/tests/package/test_python_mako.py +++ b/support/testing/tests/package/test_python_mako.py @@ -10,3 +10,15 @@ class TestPythonPy3Mako(TestPythonPackageBase): """ sample_scripts = ["tests/package/sample_python_mako.py"] timeout = 30 + +class TestPythonPy3MakoExt(TestPythonPackageBase): + __test__ = True + config = TestPythonPackageBase.config + \ + """ + BR2_PACKAGE_PYTHON3=y + BR2_PACKAGE_PYTHON_MAKO=y + BR2_PACKAGE_PYTHON_MAKO_EXT_PYGMENTPLUGIN=y + BR2_PACKAGE_PYTHON_MAKO_EXT_BABELPLUGIN=y + """ + sample_scripts = ["tests/package/sample_python_mako_ext.py"] + timeout = 30