From patchwork Thu May 9 22:53:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 27287 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 689F227BBEC; Thu, 9 May 2024 23:59:00 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 96CBD27BBF0 for ; Thu, 9 May 2024 23:58:54 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5CiL-0006w5-L2; Thu, 09 May 2024 18:58:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s5CiK-0006rw-0Z for guix-patches@gnu.org; Thu, 09 May 2024 18:58:12 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s5CiI-0006nz-Bu for guix-patches@gnu.org; Thu, 09 May 2024 18:58:11 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s5CiG-0002rK-LX for guix-patches@gnu.org; Thu, 09 May 2024 18:58:08 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70855] [PATCH 50/92] gnu: python-pytest-toolbox: Move to pyproject-build-system. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 09 May 2024 22:58:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70855 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70855@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 70855-submit@debbugs.gnu.org id=B70855.171529546010670 (code B ref 70855); Thu, 09 May 2024 22:58:08 +0000 Received: (at 70855) by debbugs.gnu.org; 9 May 2024 22:57:40 +0000 Received: from localhost ([127.0.0.1]:41219 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s5Cho-0002lw-59 for submit@debbugs.gnu.org; Thu, 09 May 2024 18:57:40 -0400 Received: from 8.mo581.mail-out.ovh.net ([46.105.77.114]:45877) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s5Chb-0002kN-4X for 70855@debbugs.gnu.org; Thu, 09 May 2024 18:57:27 -0400 Received: from director3.ghost.mail-out.ovh.net (unknown [10.108.2.205]) by mo581.mail-out.ovh.net (Postfix) with ESMTP id 4Vb6pt692Pz1FH6 for <70855@debbugs.gnu.org>; Thu, 9 May 2024 22:57:26 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-vjm68 (unknown [10.110.168.82]) by director3.ghost.mail-out.ovh.net (Postfix) with ESMTPS id AE1BA1FD4B; Thu, 9 May 2024 22:57:26 +0000 (UTC) Received: from ngraves.fr ([37.59.142.97]) by ghost-submission-6684bf9d7b-vjm68 with ESMTPSA id 6gR3KdZUPWaYQwAAaQchHw (envelope-from ); Thu, 09 May 2024 22:57:26 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-97G0022e140779-8a74-468b-a1d8-f27c90b8fedf, E63BAB6C0A71DD4DA934779D5D345DF804807214) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 81.67.146.208 Date: Fri, 10 May 2024 00:53:45 +0200 Message-ID: <20240509225530.24649-50-ngraves@ngraves.fr> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240509225530.24649-1-ngraves@ngraves.fr> References: <20240509225530.24649-1-ngraves@ngraves.fr> MIME-Version: 1.0 X-Ovh-Tracer-Id: 6113073546080477922 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrvdeffedgudehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepvdehleeiffehtedvlefhffffjeefgfduhfetkeevheeiteduiedugfekuedtheejnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepuddvjedrtddrtddruddpkedurdeijedrudegiedrvddtkedpfeejrdehledrudegvddrleejnecuvehluhhsthgvrhfuihiivgepheenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeejtdekheehseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehkedupdhmohguvgepshhmthhpohhuth X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches X-Patchwork-Original-From: Nicolas Graves via Guix-patches via From: Nicolas Graves Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-check.scm (python-pytest-toolbox): [build-system]: Move to pyproject-build-system. [arguments]<#:phases>: Restrict 'check phase replacement to 'pre-check phase. Change-Id: Id0804db32d30314076d1e411711881bbe3a3f6e1 --- gnu/packages/python-check.scm | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index f2a355bb413..ccda2042fb6 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -1481,18 +1481,16 @@ (define-public python-pytest-toolbox (file-name (git-file-name name version)) (sha256 (base32 "1wqkr3g5gmqdxmhzfsxbwy8pm3cadaj6a8cxq58w9bacly4hqbh0")))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments - '(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? inputs outputs #:allow-other-keys) - (when tests? - (substitute* "setup.cfg" - ((".*timeout.*") "")) - ;; Make the installed plugin discoverable by Pytest. - (add-installed-pythonpath inputs outputs) - (invoke "pytest" "-vv"))))))) + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (substitute* "setup.cfg" + ((".*timeout.*") "")))))))) (native-inputs (list python-pydantic python-pytest python-pytest-isort)) (home-page "https://github.com/samuelcolvin/pytest-toolbox")