[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/49: gnu: python-zarr: Speed up tests.
From: |
guix-commits |
Subject: |
11/49: gnu: python-zarr: Speed up tests. |
Date: |
Fri, 29 Mar 2024 11:15:21 -0400 (EDT) |
sharlatan pushed a commit to branch master
in repository guix.
commit 1a3aa6b19bd82db3890f8eb2170093fedcb96c88
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Tue Mar 5 23:06:54 2024 +0000
gnu: python-zarr: Speed up tests.
* 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 dbb6a8b89e..2dfffe15df 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27134,23 +27134,29 @@ codecs for use in data storage and communication
applications.")
"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
- branch master updated (8ed9ce9d00 -> b0b9d757a7), guix-commits, 2024/03/29
- 02/49: gnu: splash: Update to 3.10.3., guix-commits, 2024/03/29
- 07/49: gnu: python-pytest-arraydiff: Enable tests., guix-commits, 2024/03/29
- 05/49: gnu: python-pytest-doctestplus: Update to 1.2.0., guix-commits, 2024/03/29
- 06/49: gnu: python-pytest-arraydiff: Update to 0.6.1., guix-commits, 2024/03/29
- 11/49: gnu: python-zarr: Speed up tests.,
guix-commits <=
- 13/49: gnu: python-dask: Speed up tests., guix-commits, 2024/03/29
- 01/49: gnu: calcmysky: Update to 0.3.2., guix-commits, 2024/03/29
- 08/49: gnu: python-pytest-filter-subpackage: Update to 0.2.0., guix-commits, 2024/03/29
- 10/49: gnu: python-partd: Enable tests., guix-commits, 2024/03/29
- 12/49: gnu: python-distributed: Speed up tests., guix-commits, 2024/03/29
- 21/49: gnu: python-asdf-standard: Update to 1.1.1., guix-commits, 2024/03/29
- 24/49: gnu: python-asdf-coordinates-schemas: Update to 0.3.0., guix-commits, 2024/03/29
- 16/49: gnu: python-ginga: Update to 5.0.0., guix-commits, 2024/03/29
- 33/49: gnu: python-radiospectra: Update to 0.5.0., guix-commits, 2024/03/29
- 17/49: gnu: python-astropy-iers-data: Update to 0.2024.3.18.0.29.47., guix-commits, 2024/03/29