From patchwork Wed Mar 20 22:27:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 62031 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 2D7A627BBF0; Wed, 20 Mar 2024 22:30:59 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,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 AC9A027BBE2 for ; Wed, 20 Mar 2024 22:30:56 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rn4S7-0000cz-68; Wed, 20 Mar 2024 18:30:31 -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 1rn4S5-0000bx-IK for guix-patches@gnu.org; Wed, 20 Mar 2024 18:30:29 -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 1rn4S5-0005iH-A5; Wed, 20 Mar 2024 18:30:29 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rn4Sh-0005cV-6a; Wed, 20 Mar 2024 18:31:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69924] [PATCH 11/49] gnu: python-zarr: Speed up tests. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Wed, 20 Mar 2024 22:31:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69924 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69924@debbugs.gnu.org Cc: Sharlatan Hellseher , Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart Received: via spool by 69924-submit@debbugs.gnu.org id=B69924.171097384921243 (code B ref 69924); Wed, 20 Mar 2024 22:31:07 +0000 Received: (at 69924) by debbugs.gnu.org; 20 Mar 2024 22:30:49 +0000 Received: from localhost ([127.0.0.1]:36332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rn4SO-0005WJ-JB for submit@debbugs.gnu.org; Wed, 20 Mar 2024 18:30:49 -0400 Received: from mail-wm1-f49.google.com ([209.85.128.49]:58431) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rn4SA-0005SV-TE for 69924@debbugs.gnu.org; Wed, 20 Mar 2024 18:30:35 -0400 Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-414618e6820so2740835e9.0 for <69924@debbugs.gnu.org>; Wed, 20 Mar 2024 15:29:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710973729; x=1711578529; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IE6dEFrpC04xlG2GCcbrDVEGkGoAOrXftiA0V3NBKBg=; b=Ca8yJm2ZSZWBDPIDGJxbjjQlVvP3NcrblCNM8MnlpPoAptl3n7h0+/xB5S51dJikQZ FnY23Igygyu1uNbm80RWlAbozY/CAPgblHnXUJQvrNYCmFlHmB60DBVIFPM7NkncVo3w a8vLI7u7js0+G9039IJ9I8S39/oqJiFVufCDzqSmsesUdOen5lYfoxUnNrjWTPnPW6sE MZcUW7cXHYnWmgh5NGPmD4qqmq2Q93OOcQ/+NPVzhMagvI3/csRPIBZiLmZirh099019 nuL3ZqbPVDuNdjvIjj8jGTvWvJLvIDqtdzsLFXzKeQfwmkv4eM82GvZk/cui4IiadEK/ p0lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710973729; x=1711578529; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IE6dEFrpC04xlG2GCcbrDVEGkGoAOrXftiA0V3NBKBg=; b=wVYLSLbWwEC89MW/aHoKkHQ7U2ykSY32kphtt1xl79D+128XGxYEN2WfUcUTQq3fc0 uc3yXLsmtmn1djmsgvgKEee8/IOCPsTa+3yN3+pmYqVs69xpkBNcrPyWDAIhtb6HFNP9 I8Rxwt2dfcJhrKX57gArknVMa3N/sqmYUwC7KyCyEH+Rio21Y36DWjI2B4kWo79enhLX W5nbd9hGrqwsQ+1nFXikh//PGxyS2qZHqbIt7UUpHHMWQyc2jP6WGdM6qmaxAqPYuPZh rOpUsj5TTIt5+5umMvkD/Sz5Ap+kEJcnZoscauSjBiswxzj7Y8OSnq48iFLxxhrH9wHI tdfQ== X-Gm-Message-State: AOJu0YxzGFrUqQZTNPaL4GMZ8AE/RKhCgTR5OCzbYyXh9BgWltTzNTeW LFrOoWPxfUts0qs93EfKN2KGUiXc5bHuDuvpci0/eMJrkZIfkhGK3ugT/UOUh3k= X-Google-Smtp-Source: AGHT+IHiGn24upATc2/Ap4l0yH1hCIyjjuX4AyULoEDjgsN1s9UvnOEL5HFs+5j434Z38taSYYxCoQ== X-Received: by 2002:a05:600c:4649:b0:413:fd90:3d08 with SMTP id n9-20020a05600c464900b00413fd903d08mr6774614wmo.41.1710973729598; Wed, 20 Mar 2024 15:28:49 -0700 (PDT) Received: from localhost.localdomain (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id fm22-20020a05600c0c1600b004147266a37dsm543921wmb.30.2024.03.20.15.28.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 15:28:49 -0700 (PDT) From: Sharlatan Hellseher Date: Wed, 20 Mar 2024 22:27:41 +0000 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 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: , 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-zarr): Use G-expressions. [arguments] <#:test-flags>: Parallelize tests to speed them up. <#:phases>: 'disable-service-tests remove trailing #t from lambda. Use standard 'check phase. [native-inputs]: Add python-fsspec, python-h5py, python-pytest-doctestplus, python-pytest-timeout, and python-pytest-xdist. Change-Id: I3fc4e2a1649ad9f95ed9e3fe87e3f57ad4f58af8 --- gnu/packages/python-xyz.scm | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 799174ab60..360b4db3f1 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -26979,23 +26979,29 @@ (define-public python-zarr "0qb2wj60i7v1c95k6m0pskx20ss6dxrj3ym0d7z4c98jfah3ljsn")))) (build-system pyproject-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'disable-service-tests - (lambda _ - (setenv "ZARR_TEST_ABS" "0") - (setenv "ZARR_TEST_MONGO" "0") - (setenv "ZARR_TEST_REDIS" "0") - #t)) - (replace 'check - (lambda _ - (invoke "pytest" "-vv" "-k" "not lmdb") - #t))))) + (list + #:test-flags + #~(list "-n" "auto") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'disable-service-tests + (lambda _ + (setenv "ZARR_TEST_ABS" "0") + (setenv "ZARR_TEST_MONGO" "0") + (setenv "ZARR_TEST_REDIS" "0")))))) (propagated-inputs - (list python-asciitree python-fasteners python-numcodecs + (list python-asciitree + python-fasteners + python-numcodecs python-numpy)) (native-inputs - (list python-pytest python-setuptools-scm)) + (list python-fsspec + python-pytest + python-h5py + python-pytest-doctestplus + python-pytest-timeout + python-pytest-xdist + python-setuptools-scm)) (home-page "https://github.com/zarr-developers/zarr-python") (synopsis "Chunked, compressed, N-dimensional arrays for Python") (description