From patchwork Sun Apr 6 12:37:07 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 41345 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 B74D127BBE9; Sun, 6 Apr 2025 13:38:52 +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=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED 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 5137227BBE2 for ; Sun, 6 Apr 2025 13:38:51 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u1PGS-0005lR-CF; Sun, 06 Apr 2025 08:38:17 -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 1u1PGG-0005aR-Qf for guix-patches@gnu.org; Sun, 06 Apr 2025 08:38:05 -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 1u1PGG-00054r-HG for guix-patches@gnu.org; Sun, 06 Apr 2025 08:38:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=PY3oA0ECtE8249+EOe9yE7vXsrM+7nPUr1XvB9UFJFo=; b=Mb4XRLQ16SBcvEwfh4rtlIxRCJELWZrmDEZSwBbRsK4pURf55ZCYI+ghoEhr2Zh8w3hRMWEO6Se/nDi6Kefo7MyAP3pXvGyhfuz9+N8AF+j7Oo4Mds/sqL/9FPs6C4GZmKpxEWxkT3wXUKlKOyzjje6Wb5wztnPxQGoHfteqLRuWYXgHnSXkZ2evsCIv8XnDDVrIDfWBJH1aanuiYlpQORc6S3oUL8kKqF6dHLSk6hnyph1f5zKFmvibee38p+CXsByv9xYc0151HT2MwLuVto/khJ2PWBYnALnlsT3m56linrxFlyuWmIipRiAdltBlTtKcxIhI+yaHwOZI3Hc5ow==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1u1PGG-0001Tr-9B; Sun, 06 Apr 2025 08:38:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77575] [PATCH 05/21] gnu: python-lap: Update to 0.5.12. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org, guix-patches@gnu.org Resent-Date: Sun, 06 Apr 2025 12:38:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77575 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77575@debbugs.gnu.org Cc: Nicolas Graves , lars@6xq.net, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org X-Debbugs-Original-Xcc: lars@6xq.net, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org Received: via spool by 77575-submit@debbugs.gnu.org id=B77575.17439430725499 (code B ref 77575); Sun, 06 Apr 2025 12:38:04 +0000 Received: (at 77575) by debbugs.gnu.org; 6 Apr 2025 12:37:52 +0000 Received: from localhost ([127.0.0.1]:46352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u1PG3-0001QP-65 for submit@debbugs.gnu.org; Sun, 06 Apr 2025 08:37:51 -0400 Received: from 10.mo563.mail-out.ovh.net ([46.105.78.6]:54113) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u1PFx-0001Ou-Hd for 77575@debbugs.gnu.org; Sun, 06 Apr 2025 08:37:47 -0400 Received: from director4.derp.mail-out.ovh.net (director4.derp.mail-out.ovh.net [79.137.60.37]) by mo563.mail-out.ovh.net (Postfix) with ESMTPS id 4ZVsLc0tnNz1fDk; Sun, 6 Apr 2025 12:37:44 +0000 (UTC) Received: from director4.derp.mail-out.ovh.net (director4.derp.mail-out.ovh.net. [127.0.0.1]) by director4.derp.mail-out.ovh.net (inspect_sender_mail_agent) with SMTP for <77575@debbugs.gnu.org>; Sun, 6 Apr 2025 12:37:44 +0000 (UTC) Received: from mta3.priv.ovhmail-u1.ea.mail.ovh.net (unknown [10.109.148.34]) by director4.derp.mail-out.ovh.net (Postfix) with ESMTPS id 4ZVsLc0XcczyBT; Sun, 6 Apr 2025 12:37:44 +0000 (UTC) Received: from ngraves.fr (unknown [10.1.6.3]) by mta3.priv.ovhmail-u1.ea.mail.ovh.net (Postfix) with ESMTPSA id 87FAD3A3EC4; Sun, 6 Apr 2025 12:37:43 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-100R00380c46ac2-7da2-4f03-89c1-6aa413d29783, C919729AFBE9AB1136EE71DE75FB1B1DBE8A85BF) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 90.92.117.144 Date: Sun, 6 Apr 2025 14:37:07 +0200 Message-ID: <20250406123732.31301-5-ngraves@ngraves.fr> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250406123732.31301-1-ngraves@ngraves.fr> References: <20250406123732.31301-1-ngraves@ngraves.fr> MIME-Version: 1.0 X-Ovh-Tracer-Id: 8473522700815426274 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduleejvdelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepvdehleeiffehtedvlefhffffjeefgfduhfetkeevheeiteduiedugfekuedtheejnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepuddvjedrtddrtddruddpledtrdelvddruddujedrudeggeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepjeejheejheesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpoffvtefjohhsthepmhhoheeifegmpdhmohguvgepshhmthhpohhuth DKIM-Signature: a=rsa-sha256; bh=PY3oA0ECtE8249+EOe9yE7vXsrM+7nPUr1XvB9UFJFo=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1743943064; v=1; b=nFuzeeILUYCVfNjbmw+mRNuS9u4KWblf5lv6qg/zLrU/+i1CYbv5kznAF9uW/YoNk2ST4GPT hwlmsSl12WgWeWa5/VGYySVO+PmLnK5LReOx35MGdGEAzgkM/OGNETy5NVc0A6N9QQHtDFqzioJ KhUM0/4CTGdLeud+BJmsqduhrv1K5L2KlQosQhZhj4q8eD6FOzcfGoV98fq8EnWDRzXMlUJF8ia IXfwdaeo86nkAgKqsVjnOs1rOhQdX53wYyhPt7tAS2z/R1fUmhULHPsbEgty5dYX2oTpYA6gIJb toUJhN1uLWd37TG7siQIK7Kv6C9Lz7RdQXnssqQBqtUFQ== 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/machine-learning.scm (python-lap): Update to 0.5.12. [build-system]: Switch to pyproject. [arguments]{test-flags}: Run tests in output. {phases}: Add a 'check-cleanup phase to remove tests from output. [propagated-inputs]: Remove python-scipy. [native-inputs]: Add python-setuptools, python-wheel. --- gnu/packages/machine-learning.scm | 39 +++++++++++++++---------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index e62535d890..304e3bf87e 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -5976,34 +5976,33 @@ (define-public liblantern (define-public python-lap (package (name "python-lap") - (version "0.4.0") + (version "0.5.12") (source (origin (method url-fetch) (uri (pypi-uri "lap" version)) (sha256 (base32 - "0fqfxpq4jg9h4wxjw540gjmvfg1ccc1nssk7i9njg7qfdybxknn4")))) - (build-system python-build-system) + "1za4mf5nd7vzwd24sy2mfxrk8mnwq7d8rv6h96yh8v5flx7422sp")))) + (build-system pyproject-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'build - (lambda* (#:key inputs #:allow-other-keys) - (invoke "python" "setup.py" "build" - "--cpu-baseline=sse2"))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - ;; The tests must be run from elsewhere. - (mkdir-p "/tmp/test") - (copy-recursively "lap/tests" "/tmp/test") - (with-directory-excursion "/tmp/test" - (invoke "pytest" "-vv")))))))) + (list + #:test-flags #~(list "-v" #$output) + #:phases + #~(modify-phases %standard-phases + (add-after 'check 'check-cleanup + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (for-each + delete-file-recursively + (find-files #$output + (lambda (file stat) + (or (member (basename file) + '("tests" ".pytest_cache")))) + #:directories? #t)))))))) (propagated-inputs - (list python-numpy - python-scipy)) + (list python-numpy)) (native-inputs - (list python-cython python-pytest)) + (list python-cython python-pytest python-setuptools python-wheel)) (home-page "https://github.com/gatagat/lap") (synopsis "Linear Assignment Problem solver (LAPJV/LAPMOD)") (description "Lap is a linear assignment problem solver using Jonker-Volgenant