From patchwork Sat May 18 10:00:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 27625 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 53A4727BBEA; Sat, 18 May 2024 11:01:17 +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.8 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED,URIBL_SBL_A autolearn=ham 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 3F02927BBE2 for ; Sat, 18 May 2024 11:01:16 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8GsB-0000Gm-9t; Sat, 18 May 2024 06:01:03 -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 1s8Gs6-0000GA-PP for guix-patches@gnu.org; Sat, 18 May 2024 06:00:59 -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 1s8Gs6-0002Kr-GX for guix-patches@gnu.org; Sat, 18 May 2024 06:00:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s8Gs9-0000rQ-QR for guix-patches@gnu.org; Sat, 18 May 2024 06:01:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70995] [PATCH v2 1/2] gnu: python-debugpy: Move to pyproject-build-system. References: <20240517054144.15296-1-ngraves@ngraves.fr> In-Reply-To: <20240517054144.15296-1-ngraves@ngraves.fr> Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 18 May 2024 10:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70995 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70995@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 70995-submit@debbugs.gnu.org id=B70995.17160264553287 (code B ref 70995); Sat, 18 May 2024 10:01:01 +0000 Received: (at 70995) by debbugs.gnu.org; 18 May 2024 10:00:55 +0000 Received: from localhost ([127.0.0.1]:60757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8Gs2-0000qx-LN for submit@debbugs.gnu.org; Sat, 18 May 2024 06:00:54 -0400 Received: from 3.mo575.mail-out.ovh.net ([46.105.58.60]:40943) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8Grz-0000ql-Qw for 70995@debbugs.gnu.org; Sat, 18 May 2024 06:00:53 -0400 Received: from director4.ghost.mail-out.ovh.net (unknown [10.109.139.172]) by mo575.mail-out.ovh.net (Postfix) with ESMTP id 4VhK8Z1dt3z1T52 for <70995@debbugs.gnu.org>; Sat, 18 May 2024 10:00:46 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-jgd8b (unknown [10.110.96.170]) by director4.ghost.mail-out.ovh.net (Postfix) with ESMTPS id BE1FD1FDB5; Sat, 18 May 2024 10:00:45 +0000 (UTC) Received: from ngraves.fr ([37.59.142.101]) by ghost-submission-6684bf9d7b-jgd8b with ESMTPSA id O+A7Kk18SGbt0gYAblO6Mw (envelope-from ); Sat, 18 May 2024 10:00:45 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-101G0046ad6237f-513a-4639-a299-236cd54c45b6, BDB7418199CE68AC6294CEC755C667778ECDC1D2) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 81.67.146.208 Date: Sat, 18 May 2024 12:00:30 +0200 Message-ID: <20240518100040.13601-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Ovh-Tracer-Id: 8957096710014952162 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrvdehiedgvdduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffogggtgfesthekredtredtjeenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeegtdeihfffkeejteffkefhveeileeiteekudduffekvdeguefhvdeguedvgeelgfenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhgihhthhhusghushgvrhgtohhnthgvnhhtrdgtohhmnecukfhppeduvdejrddtrddtrddupdekuddrieejrddugeeirddvtdekpdefjedrheelrddugedvrddutddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeejtdelleehseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehjeehpdhmohguvgepshhmthhpohhuth 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-xyz.scm (python-debugpy): [build-system]: Move to pyproject-build-system. [arguments]<#:test-flags>: Superset 'check phase replacement. Change-Id: Ie112f4b25df8f7996124b465b81c84403294f2d5 --- gnu/packages/python-xyz.scm | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index da01c71ce03..cf953674b09 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -16823,10 +16823,20 @@ (define-public python-debugpy (sha256 (base32 "1dpfzs3p51648i7f3fz8dw5d0vrj39iwn1jhn0226idc02ybyqih")))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments (list #:tests? #f ; Fail on systems with YAMA LSM’s ptrace scope > 0. + #:test-flags + '(list "-n" (number->string (parallel-job-count)) + "-k" (string-append + ;; These tests cannot be run in parallel because their + ;; test data would not be copied by xdist and lead to + ;; import errors. (see: + ;; https://github.com/microsoft/debugpy/issues/342 and + ;; https://github.com/microsoft/debugpy/issues/880). + "not test_custom_python_args " + "and not test_autokill ")) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-sh-in-tests @@ -16844,21 +16854,7 @@ (define-public python-debugpy (lambda _ ;; This adjusts the behavior of debugpy to load pydevd from ;; Python site packages. - (setenv "DEBUGPY_BUNDLING_DISABLED" "1"))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "pytest" "-vv" - "-n" (number->string (parallel-job-count)) - "-k" - (string-append - ;; These tests cannot be run in parallel because their - ;; test data would not be copied by xdist and lead to - ;; import errors. (see: - ;; https://github.com/microsoft/debugpy/issues/342 and - ;; https://github.com/microsoft/debugpy/issues/880). - "not test_custom_python_args " - "and not test_autokill ")))))))) + (setenv "DEBUGPY_BUNDLING_DISABLED" "1")))))) (native-inputs ;; See: https://raw.githubusercontent.com/microsoft/debugpy/ ;; main/tests/requirements.txt.