[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
158/242: gnu: python-pandas: Build and run tests in parallel.
From: |
guix-commits |
Subject: |
158/242: gnu: python-pandas: Build and run tests in parallel. |
Date: |
Thu, 12 May 2022 14:14:24 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 8b390a8750b9d47924cdb49d3459668f0703fcea
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Apr 18 15:27:38 2022 -0400
gnu: python-pandas: Build and run tests in parallel.
* gnu/packages/python-science.scm (python-pandas)
[phases]{enable-parallel-build}: New phase.
{check}: Add xdist -n option. Skip test_memory_usage test.
[native-inputs]: Add python-pytest-xdist.
---
gnu/packages/python-science.scm | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 2cabdb490c..21ed2c7694 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -413,6 +413,12 @@ library.")
(srfi srfi-26))
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'enable-parallel-build
+ (lambda _
+ (substitute* "setup.py"
+ (("\"-j\", type=int, default=1")
+ (format #f "\"-j\", type=int, default=~a"
+ (parallel-job-count))))))
(add-after 'unpack 'patch-which
(lambda* (#:key inputs #:allow-other-keys)
(let ((which (assoc-ref inputs "which")))
@@ -439,6 +445,7 @@ library.")
(when tests?
(invoke "pytest" "-vv" "pandas" "--skip-slow"
"--skip-network"
+ "-n" (number->string (parallel-job-count))
"-k"
(string-append
;; These test access the internet (see:
@@ -448,7 +455,11 @@ library.")
"not test_wrong_url"
;; TODO: Missing input
" and not TestS3"
- " and not s3"))))))))))
+ " and not s3"
+ ;; This test fails when run with pytest-xdist
+ ;; (see:
+ ;;
https://github.com/pandas-dev/pandas/issues/39096).
+ " and not test_memory_usage"))))))))))
(propagated-inputs
(list python-jinja2
python-numpy
@@ -466,6 +477,7 @@ library.")
python-html5lib
python-pytest
python-pytest-mock
+ python-pytest-xdist
;; Needed to test clipboard support.
xorg-server-for-tests))
(home-page "https://pandas.pydata.org")
- 39/242: gnu: Add python-jaraco-functools-bootstrap., (continued)
- 39/242: gnu: Add python-jaraco-functools-bootstrap., guix-commits, 2022/05/12
- 60/242: gnu: python-factory-boy: Update to 3.2.1., guix-commits, 2022/05/12
- 133/242: gnu: python-websockets: Update to 10.3 and enable tests., guix-commits, 2022/05/12
- 132/242: gnu: python-ipython-documentation: Also build info and pdf targets., guix-commits, 2022/05/12
- 124/242: gnu: texlive-fontspec: Add missing propagated inputs., guix-commits, 2022/05/12
- 147/242: gnu: Add python-pecan., guix-commits, 2022/05/12
- 149/242: gnu: python-fakeredis: Update to 1.7.1., guix-commits, 2022/05/12
- 152/242: gnu: Add python-openapi-core., guix-commits, 2022/05/12
- 153/242: gnu: Add python-jupyterlab-server., guix-commits, 2022/05/12
- 155/242: gnu: python-numpy: Update to 1.21.6 and parallelize build/tests., guix-commits, 2022/05/12
- 158/242: gnu: python-pandas: Build and run tests in parallel.,
guix-commits <=
- 163/242: gnu: python-jupyter-server: Update to 1.16.0., guix-commits, 2022/05/12
- 159/242: gnu: python-pandas: Update to 1.4.2., guix-commits, 2022/05/12
- 166/242: gnu: python-sparqlkernel: Use gexps and fix inputs., guix-commits, 2022/05/12
- 169/242: gnu: xeus: Update to 2.4.1., guix-commits, 2022/05/12
- 173/242: gnu: mbed-tools: Update to 7.53.0 and relax click version requirement., guix-commits, 2022/05/12
- 184/242: gnu: sshoot: Update to 1.5.1., guix-commits, 2022/05/12
- 182/242: gnu: python-bitstruct: Update to 8.14.0., guix-commits, 2022/05/12
- 181/242: gnu: Add python-argparse-addons., guix-commits, 2022/05/12
- 196/242: gnu: python-miio: Update to 0.5.11., guix-commits, 2022/05/12
- 177/242: gnu: python-can: Update to 4.0.0., guix-commits, 2022/05/12