From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id oIXxGsYeNWboOAEAqHPOHw:P1 (envelope-from ) for ; Fri, 03 May 2024 19:28:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id oIXxGsYeNWboOAEAqHPOHw (envelope-from ) for ; Fri, 03 May 2024 19:28:38 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714757318; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=yba9UO1YSr4M3dYrkKqMyJiv8XaKxGey6vJ7KHk/MK0=; b=GN8YhfxKOlBY8st0o7smIrJtknG1/nbLhfGxxeC33grjwFSvWqqSYh1Djt414S5dbChv2q qyMF0LgGr7q9YC/V+nBD4JT4d3xq+xZDOhPrYyEmEgXoUl/PNOfCCy1IOyfoKk5q1R4fKK hPfEb1+/uIoQyZhdMkLuS/xmSArdyE/tZ2zOS3gWij9QZQ1u4p6c6uMiUjVl9R2+3+x8oc peyDqCkmA6ZZ0zmOfhVMXBhtO7ZacImLI8jVPEpstYsxycXbJMl+b+N+IfcG+TE5lXWG4h Md0sZkP5osfipzZVuIvo3uLZvE2f/a7gZUD1dNc+j5W3qlLjbbGVTE/fOHkBzQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714757318; a=rsa-sha256; cv=none; b=OAfb+buNknQiRB/eWfIqebimUOsk51l7xGQbuOl+KsdjSFiCzAIxsb9gVH/pg+oEq2QWUF x8h9+aDCYmGO/161B9kAmbh5wdhLPjUGpxtVmvIzZxG0r87vbNg9oNlBdt7xzpq0CJpTuu 5Ath9Eh2mLRr+4FwKO412oPs1lraPRuJYZQz5uMNFNtg3HqzRrtgsOMn7792oXQB8OrJI2 J0mN9SgsC8g7aJfveR490y52hgKE7cKF766C6HyY6lM2p0a3xqwcwxFm6pIoXJvbc7OIcr 0jV/83AiLFKvp+2L/jreTINMFJ6MnF0wJ5IjjqtGDA+zDOa/AEBjYsXNgzQb2w== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2F5537CEE1 for ; Fri, 3 May 2024 19:28:38 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2whR-0006mF-5f; Fri, 03 May 2024 13:27:57 -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 1s2whO-0006jh-95 for guix-patches@gnu.org; Fri, 03 May 2024 13:27:54 -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 1s2whO-0007Ji-0B for guix-patches@gnu.org; Fri, 03 May 2024 13:27:54 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s2whk-0004Dl-Dx for guix-patches@gnu.org; Fri, 03 May 2024 13:28:16 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70750] [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 17:28:16 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70750 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70750@debbugs.gnu.org Cc: ngraves@ngraves.fr X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171475728616020 (code B ref -1); Fri, 03 May 2024 17:28:16 +0000 Received: (at submit) by debbugs.gnu.org; 3 May 2024 17:28:06 +0000 Received: from localhost ([127.0.0.1]:47457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2wha-0004AF-BC for submit@debbugs.gnu.org; Fri, 03 May 2024 13:28:06 -0400 Received: from lists.gnu.org ([2001:470:142::17]:57732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2whX-00047a-8U for submit@debbugs.gnu.org; Fri, 03 May 2024 13:28:04 -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 1s2wh5-0006ZQ-DM for guix-patches@gnu.org; Fri, 03 May 2024 13:27:35 -0400 Received: from 11.mo583.mail-out.ovh.net ([46.105.47.167]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s2wh3-0007FS-FZ for guix-patches@gnu.org; Fri, 03 May 2024 13:27:35 -0400 Received: from director4.ghost.mail-out.ovh.net (unknown [10.109.176.161]) by mo583.mail-out.ovh.net (Postfix) with ESMTP id 4VWHmz1Hjbz1QpJ for ; Fri, 3 May 2024 17:27:31 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-5h7r4 (unknown [10.111.182.238]) by director4.ghost.mail-out.ovh.net (Postfix) with ESMTPS id A1F451FD74; Fri, 3 May 2024 17:27:30 +0000 (UTC) Received: from ngraves.fr ([37.59.142.109]) by ghost-submission-6684bf9d7b-5h7r4 with ESMTPSA id 8A3iGYIeNWYFrgAAY6HlPQ (envelope-from ); Fri, 03 May 2024 17:27:30 +0000 X-OVh-ClientIp: 80.214.115.223 Date: Fri, 3 May 2024 18:55:14 +0200 Message-ID: <20240503172650.32434-15-ngraves@ngraves.fr> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240503172650.32434-1-ngraves@ngraves.fr> References: <20240503172650.32434-1-ngraves@ngraves.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 2198601046732563170 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrvddvtddgudduvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeelffejteeutefhfeekfffffedvudekjeekgfeludeitdfhkeevhfeivdfhffeggeenucfkphepuddvjedrtddrtddruddpkedtrddvudegrdduudehrddvvdefpdefjedrheelrddugedvrddutdelnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopehguhhigidqphgrthgthhgvshesghhnuhdrohhrghdpoffvtefjohhsthepmhhoheekfedpmhhouggvpehsmhhtphhouhht Received-SPF: pass client-ip=46.105.47.167; envelope-from=ngraves@ngraves.fr; helo=11.mo583.mail-out.ovh.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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 From: Nicolas Graves via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -6.39 X-Migadu-Queue-Id: 2F5537CEE1 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -6.39 X-TUID: u+ondUQn1WN/ * 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 -- 2.41.0