From patchwork Fri May 3 22:18:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 63933 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 1556027BBEA; Fri, 3 May 2024 23:45:53 +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=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 97DB727BBE2 for ; Fri, 3 May 2024 23:45:52 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s31dO-0007HH-3K; Fri, 03 May 2024 18:44:06 -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 1s31d8-00078U-FH for guix-patches@gnu.org; Fri, 03 May 2024 18:43:50 -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 1s31d5-0003VX-CP for guix-patches@gnu.org; Fri, 03 May 2024 18:43:47 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s31dR-00065f-W0 for guix-patches@gnu.org; Fri, 03 May 2024 18:44:10 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70735] [PATCH 015/714] gnu: python-isort: Improve package style. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 03 May 2024 22:44:09 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70735 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70735@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 70735-submit@debbugs.gnu.org id=B70735.171477623023098 (code B ref 70735); Fri, 03 May 2024 22:44:09 +0000 Received: (at 70735) by debbugs.gnu.org; 3 May 2024 22:43:50 +0000 Received: from localhost ([127.0.0.1]:49346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s31d7-00060J-LK for submit@debbugs.gnu.org; Fri, 03 May 2024 18:43:50 -0400 Received: from 4.mo576.mail-out.ovh.net ([46.105.42.102]:54247) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s31d4-0005zR-8l for 70735@debbugs.gnu.org; Fri, 03 May 2024 18:43:47 -0400 Received: from director9.ghost.mail-out.ovh.net (unknown [10.109.148.110]) by mo576.mail-out.ovh.net (Postfix) with ESMTP id 4VWQnQ3HhSz1klr for <70735@debbugs.gnu.org>; Fri, 3 May 2024 22:43:22 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-b2m69 (unknown [10.110.168.164]) by director9.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 33FCC1FD13; Fri, 3 May 2024 22:43:22 +0000 (UTC) Received: from ngraves.fr ([37.59.142.110]) by ghost-submission-6684bf9d7b-b2m69 with ESMTPSA id wyICCopoNWZqhgMAAHTvYQ (envelope-from ); Fri, 03 May 2024 22:43:22 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-110S00424654bd3-f92c-4bc5-ad0d-2eea1cdb7a0b, DD66FAD6BDE8F99CDE76407431BDB49D27B016D9) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 81.67.146.208 Date: Sat, 4 May 2024 00:18:17 +0200 Message-ID: <20240503224254.28001-15-ngraves@ngraves.fr> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240503224254.28001-1-ngraves@ngraves.fr> References: <20240503224254.28001-1-ngraves@ngraves.fr> MIME-Version: 1.0 X-Ovh-Tracer-Id: 7532833328212206306 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrvddvuddgudefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepleffjeetueethfefkeffffefvddukeejkefgleduiedthfekvefhiedvhfffgeegnecukfhppeduvdejrddtrddtrddupdekuddrieejrddugeeirddvtdekpdefjedrheelrddugedvrdduuddtnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeejtdejfeehseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehjeeipdhmohguvgepshhmthhpohhuth 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-isort): Improve package style. [build-system]: Move to pyproject-build-system. [arguments]<#:test-flags>: Add option to replace former check phase. <#:phases>: Remove phases build, install and check. Change-Id: Idac8f151977f2494eb44d51aa1fcbf3156b5cc87 --- gnu/packages/python-xyz.scm | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 2c81cd2d51..8be0040220 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -23654,19 +23654,13 @@ (define-public python-isort (sha256 (base32 "1vbwc4gpffclf6hw08lvvgqlvsgfjlw7gjsm28jfcrln2pixla7j")))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments (list + #:test-flags '(list "tests/unit/" "-k" "not test_gitignore" + "--ignore=tests/unit/test_deprecated_finders.py") #:phases #~(modify-phases %standard-phases - (replace 'build - (lambda _ - (invoke "python" "-m" "build" "--wheel" "--no-isolation" "."))) - (replace 'install - (lambda _ - (let ((whl (car (find-files "dist" "\\.whl$")))) - (invoke "pip" "--no-cache-dir" "--no-input" - "install" "--no-deps" "--prefix" #$output whl)))) (add-after 'install 'install-example-plugins (lambda _ (for-each (lambda (source-directory) @@ -23680,15 +23674,7 @@ (define-public python-isort (setenv "HOME" (getcwd)) (let ((example-whls (find-files "dist" "^example.*\\.whl$"))) (apply invoke "pip" "--no-cache-dir" "--no-input" - "install" "--user" "--no-deps" example-whls)))) - (replace 'check - (lambda* (#:key tests? inputs outputs #:allow-other-keys) - (when tests? - (let ((bin (string-append #$output "/bin"))) - (setenv "PATH" (string-append (getenv "PATH") ":" bin))) - (invoke "pytest" "-vv" "tests/unit/" - "-k" "not test_gitignore" ;requires git - "--ignore=tests/unit/test_deprecated_finders.py"))))))) + "install" "--user" "--no-deps" example-whls))))))) (native-inputs (list python-black python-colorama