Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B9A87C4332F for ; Sun, 29 Oct 2023 23:40:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 6EBBF8201E; Sun, 29 Oct 2023 23:40:27 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 6EBBF8201E 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 Nmid8FXMUtUt; Sun, 29 Oct 2023 23:40:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id A24A584F9E; Sun, 29 Oct 2023 23:40:25 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org A24A584F9E Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 6F5461BF3EE for ; Sun, 29 Oct 2023 23:40:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 47F2670653 for ; Sun, 29 Oct 2023 23:40:13 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 47F2670653 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 7RIE3odbsJWN for ; Sun, 29 Oct 2023 23:40:12 +0000 (UTC) Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by smtp3.osuosl.org (Postfix) with ESMTPS id 4897870636 for ; Sun, 29 Oct 2023 23:40:12 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 4897870636 Received: by mail-il1-x131.google.com with SMTP id e9e14a558f8ab-357ccaf982eso14635275ab.0 for ; Sun, 29 Oct 2023 16:40:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698622811; x=1699227611; 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=wWL6QHxUvn0V20KF6ECJJDvxZvfGN19irkgkUJR2Owk=; b=rEFaJMo5cbhIK6UbrUpNH/zA7dUPgRkVvRPY0rrQqOXrQDp44y7wHqFyrPWKtUA66a Kjwm7gNNw0Do8zusBQlUccLk9bFLiZdtl23r6Udp9abXG9n2vMtMxPwraqpRf78143iE V9kQRHVUWz9U+Nqu1ZDnxrjjepM5e77utaBixT+rdzQYxsKwTLIB358XGB+AkUewMPe4 8JKv529mtMOLOsukg+iTpT0EO3jCMGybY8uvR51Tcejrsu76RSvIXRj4aktCtXAJIIO+ KhybTWMtcpjgxH7/Wcn4UZCJRbrWKrGMDN9Daf3vNlPBTym+O0wyYhzNzHCxSK/mK3aN j04w== X-Gm-Message-State: AOJu0Yzxjmiz0WyqMQFGMEHX0p8FcSlLAukkEtHU2O65MiSxKlOp2Q+u k/i6/eQMIIT+J+oXij91poa3QXqqDOY= X-Google-Smtp-Source: AGHT+IGnDEK6iPM/ZlFcocZZ6IjeF/WezJj8phEuz/2QVSG3s33ZbdF2yQMbyp2OyI/VgXB5wXx/wg== X-Received: by 2002:a05:6e02:20ce:b0:356:4892:25d0 with SMTP id 14-20020a056e0220ce00b00356489225d0mr12864803ilq.26.1698622810969; Sun, 29 Oct 2023 16:40:10 -0700 (PDT) Received: from james-x399.localdomain (71-33-131-93.hlrn.qwest.net. [71.33.131.93]) by smtp.gmail.com with ESMTPSA id j16-20020a056e02015000b00357e53527afsm2012478ilr.61.2023.10.29.16.40.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 16:40:09 -0700 (PDT) From: James Hilliard To: buildroot@buildroot.org Date: Sun, 29 Oct 2023 17:40:01 -0600 Message-Id: <20231029234003.2606006-2-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231029234003.2606006-1-james.hilliard1@gmail.com> References: <20231029234003.2606006-1-james.hilliard1@gmail.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698622811; x=1699227611; darn=buildroot.org; 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=wWL6QHxUvn0V20KF6ECJJDvxZvfGN19irkgkUJR2Owk=; b=jgAiCVPMzm+qctd4KoZE3xFTJIlpmxoH2Mi8CpbtgFJSKO3XxpuAxM24vvZBMFQ6Av 2eUcZxCqoKiwHQzYitqxY5pwXZF3O8WsSCILN1pI1/3pcvvLppVApu7IA8yOaQlS14AG vpx/CKrLmZOMtzY6Nw9mWzcsUxIt8XvTutBL4NGvq932x5v59EO+l3dTvv8T21Fx6M/J T7cPXmijaQ+WDpVVVn4dr4o3R38ZXKI8enV9gdjtisvXbi8C/mfcLqxPl9JZ6qkWHJTw d0lv/cMwzjoxIyFF4wZGPZRuE7Ec0j3HWMYp2l+2zzySzvg/YxBIjW+a3q39jxlu5CnQ TyyA== 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=20230601 header.b=jgAiCVPM Subject: [Buildroot] [PATCH v4 2/4] package/python-terminaltables: use correct pep517 build backend 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: Gustavo Heinz , James Hilliard , Asaf Kahlon , "Wojciech M . Zabolotny" , Angelo Compagnucci , Thomas Petazzoni , Giulio Benetti Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" We need to migrate python-terminaltables to the pep517 poetry-core backend as setuptools is not supported when building with a pep517 frontend. This package currently builds using setuptools as we do not yet use setuptools with a pep517 build frontend. The package contains a setuptools fallback which only can be used when using setuptools without a pep517 frontend as the pep517 frontend will only use the build backend specified in the package pyproject.toml which is poetry-core and not setuptools. Upstream has merged a patch replacing poetry with poetry-core, however we can not backport this using a patch file due to CRLF line ending issues so we will have to apply the change in the patch using sed instead. See upstream commit: https://github.com/matthewdeanmartin/terminaltables/commit/9e3dda0efb54fee6934c744a13a7336d24c6e9e9 Signed-off-by: James Hilliard --- Changes v1 -> v2: - add more details regarding pep517 frontend compatibility --- package/python-terminaltables/python-terminaltables.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/package/python-terminaltables/python-terminaltables.mk b/package/python-terminaltables/python-terminaltables.mk index b31ed332b6..385c71ae2d 100644 --- a/package/python-terminaltables/python-terminaltables.mk +++ b/package/python-terminaltables/python-terminaltables.mk @@ -7,8 +7,16 @@ PYTHON_TERMINALTABLES_VERSION = 3.1.10 PYTHON_TERMINALTABLES_SOURCE = terminaltables-$(PYTHON_TERMINALTABLES_VERSION).tar.gz PYTHON_TERMINALTABLES_SITE = https://files.pythonhosted.org/packages/f5/fc/0b73d782f5ab7feba8d007573a3773c58255f223c5940a7b7085f02153c3 -PYTHON_TERMINALTABLES_SETUP_TYPE = setuptools +PYTHON_TERMINALTABLES_SETUP_TYPE = pep517 PYTHON_TERMINALTABLES_LICENSE = MIT PYTHON_TERMINALTABLES_LICENSE_FILES = LICENSE +PYTHON_TERMINALTABLES_DEPENDENCIES = host-python-poetry-core + +# we can't use a normal patch file due to different line endings +define PYTHON_TERMINALTABLES_USE_POETRY_CORE + $(SED) 's/requires = \["poetry>=0.12"\]/requires = \["poetry-core>=1.0.0"\]/' $(@D)/pyproject.toml + $(SED) 's/build-backend = "poetry.masonry.api"/build-backend = "poetry.core.masonry.api"/' $(@D)/pyproject.toml +endef +PYTHON_TERMINALTABLES_POST_PATCH_HOOKS += PYTHON_TERMINALTABLES_USE_POETRY_CORE $(eval $(python-package)) -- 2.34.1 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot