From patchwork Fri Apr 4 19:16:40 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 41288 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 7AA5527BBEA; Fri, 4 Apr 2025 20:19:30 +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=-7.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED 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 DDB2F27BBE2 for ; Fri, 4 Apr 2025 20:19:29 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u0mYO-0006hi-Tc; Fri, 04 Apr 2025 15:18:12 -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 1u0mYJ-0006bo-2a for guix-patches@gnu.org; Fri, 04 Apr 2025 15:18:07 -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 1u0mYI-0007oW-Lb for guix-patches@gnu.org; Fri, 04 Apr 2025 15:18:06 -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=pWmUJcn+pDxzrmhUDElIva61tu1JUjT4UFBsL/bCOkY=; b=MqBZt8eTxlNA8ZaswM92M1V1AsGGcdyMW/qMuZd9FyG9S9TCzg89AQJrr1eTBikjglhhbPdr8lCfI9Xu6/o8WjnXIs9eJm4qEZCKLCo11pULodc/Or5fxU5ZKQ+vV4uWsPs+CA23SAE+BtUJbXNXL1b1Eg4cDwu0BS4D1TwSePTbOuwbAuFNcA4HyL/W5wOcOQJIlW/71LmFn2UHlARf+lSiHZftyqiWkqeWSJZIkLw4lW87cJU9R7+N9A1UqolakSLL0shsXa2k1muG7dSItRXR+2j76b8WFh4xXGXtFg86DqbI0QjLyRiQq8Byz+tzAzf5QsCryZwnFvZQiDwLQw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1u0mYI-0007LE-En for guix-patches@gnu.org; Fri, 04 Apr 2025 15:18:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77541] [PATCH 08/38] gnu: python-pytensor: Update to 2.30.1. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 04 Apr 2025 19:18:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77541 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77541@debbugs.gnu.org Cc: Nicolas Graves Received: via spool by 77541-submit@debbugs.gnu.org id=B77541.174379425727882 (code B ref 77541); Fri, 04 Apr 2025 19:18:06 +0000 Received: (at 77541) by debbugs.gnu.org; 4 Apr 2025 19:17:37 +0000 Received: from localhost ([127.0.0.1]:40018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u0mXo-0007FP-3E for submit@debbugs.gnu.org; Fri, 04 Apr 2025 15:17:36 -0400 Received: from 2.mo563.mail-out.ovh.net ([46.105.33.33]:35659) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u0mXh-0007E2-0V for 77541@debbugs.gnu.org; Fri, 04 Apr 2025 15:17:30 -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 4ZTpJl3BnLz1Zww; Fri, 4 Apr 2025 19:17:27 +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 <77541@debbugs.gnu.org>; Fri, 4 Apr 2025 19:17:27 +0000 (UTC) Received: from mta6.priv.ovhmail-u1.ea.mail.ovh.net (unknown [10.110.168.98]) by director4.derp.mail-out.ovh.net (Postfix) with ESMTPS id 4ZTpJl2sMnzy98; Fri, 4 Apr 2025 19:17:27 +0000 (UTC) Received: from ngraves.fr (unknown [10.1.6.1]) by mta6.priv.ovhmail-u1.ea.mail.ovh.net (Postfix) with ESMTPSA id 11E9BD43D38; Fri, 4 Apr 2025 19:17:27 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-98R00274918769-1c82-4836-9722-862e7e79a11b, 5C763BAE2B049B0552D0CEA89988AE409CD35AAA) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 90.92.117.144 Date: Fri, 4 Apr 2025 21:16:40 +0200 Message-ID: <20250404191717.32747-8-ngraves@ngraves.fr> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250404191717.32747-1-ngraves@ngraves.fr> References: <20250404191717.32747-1-ngraves@ngraves.fr> MIME-Version: 1.0 X-Ovh-Tracer-Id: 3478749237482808034 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduledvvdeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepleffjeetueethfefkeffffefvddukeejkefgleduiedthfekvefhiedvhfffgeegnecukfhppeduvdejrddtrddtrddupdeltddrledvrdduudejrddugeegnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepvddprhgtphhtthhopeejjeehgeduseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdfovfetjfhoshhtpehmohehieefmgdpmhhouggvpehsmhhtphhouhht DKIM-Signature: a=rsa-sha256; bh=pWmUJcn+pDxzrmhUDElIva61tu1JUjT4UFBsL/bCOkY=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1743794247; v=1; b=mIF5yVyaeo7cMhpepy3dafilfMKGL4vkT7xdOyCV/N7/NT0FMh529pBQtnKw12O8qnR5t+J0 5v2uXKfgf7HJ+ajxGvrnZkANrIi+tcN97Olt3uBTawifQRm3xDq7Q+DVYHwbR4fnbYmG1hRvw16 dvTs1iHLBsY9xrFzSam636Q/yOkflK07kbdEkeC7M8i21U62eVSD1m/z0XmdiZsr6HbaPExLsiv IzOLCsmXubJuaoYBjGOVhKRXl9WnouZ4q2pgymPXcOEXtK3D5MEM6oee3O4cbMdJR/0CZDlW+nq kbiXYp6ee/GtHxKr7Wg2MplpdLYmCw5ULq7SmvuIzc78w== 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-science.scm (python-pytensor): Update to 2.30.1. [arguments]{test-flags}: Use field. {phases}: Remove 'check phase replacement. Add phase 'pre-check. --- gnu/packages/python-science.scm | 43 +++++++++++++++++---------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 49e46f7ff3..3bf266582d 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -2465,7 +2465,7 @@ (define-public python-xarray-schema (define-public python-pytensor (package (name "python-pytensor") - (version "2.18.1") + (version "2.30.1") (source (origin (method git-fetch) (uri (git-reference @@ -2474,10 +2474,28 @@ (define-public python-pytensor (file-name (git-file-name name version)) (sha256 (base32 - "0qa0y13xfm6w7ry7gp0lv84c8blyg34a9ns7ynwqyhf9majq08s5")))) + "008ivcrab9j256mcrfrcd1xlkq5qicsx97wqaxaxwk1ynnmxdqbn")))) (build-system pyproject-build-system) (arguments (list + #:test-flags + #~(list ;; test_tensor_basic.py file requires JAX. + "--ignore" "tests/link/jax/test_tensor_basic.py" + ;; No module named 'pytensor.scan.scan_perform' + "--ignore" "pytensor/scan/scan_perform_ext.py" + ;; Skip benchmark tests. + "-k" (string-append + "not test_elemwise_speed" + " and not test_logsumexp_benchmark" + " and not test_fused_elemwise_benchmark" + " and not test_scan_multiple_output" + " and not test_vector_taps_benchmark" + " and not test_cython_performance") + ;; Skip computationally intensive tests. + "--ignore" "tests/scan/" + "--ignore" "tests/tensor/" + "--ignore" "tests/sandbox/" + "--ignore" "tests/sparse/sandbox/") #:phases #~(modify-phases %standard-phases ;; Replace version manually because pytensor uses @@ -2499,27 +2517,10 @@ (define-public python-pytensor (substitute* "setup.py" (("versioneer.get_version\\(\\)") (string-append "\"" #$version "\""))))) - (replace 'check + (add-before 'check 'pre-check (lambda* (#:key tests? #:allow-other-keys) (when tests? - (setenv "HOME" "/tmp") ; required for most tests - ;; Test discovery fails, have to call pytest by hand. - ;; test_tensor_basic.py file requires JAX. - (invoke "python" "-m" "pytest" "-vv" - "--ignore" "tests/link/jax/test_tensor_basic.py" - ;; Skip benchmark tests. - "-k" (string-append - "not test_elemwise_speed" - " and not test_logsumexp_benchmark" - " and not test_fused_elemwise_benchmark" - " and not test_scan_multiple_output" - " and not test_vector_taps_benchmark" - " and not test_cython_performance") - ;; Skip computationally intensive tests. - "--ignore" "tests/scan/" - "--ignore" "tests/tensor/" - "--ignore" "tests/sandbox/" - "--ignore" "tests/sparse/sandbox/"))))))) + (setenv "HOME" "/tmp"))))))) ; required for most tests (native-inputs (list python-cython python-pytest python-pytest-mock