[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
152/204: gnu: python-pandas: Build and run tests in parallel.
From: |
guix-commits |
Subject: |
152/204: gnu: python-pandas: Build and run tests in parallel. |
Date: |
Wed, 20 Apr 2022 02:03:39 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit aacb6bd4ccda0c1b642d989d63ad2cd13389f1fd
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 1852a16047..7721b04c31 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -412,6 +412,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")))
@@ -438,6 +444,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:
@@ -447,7 +454,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
@@ -465,6 +476,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")
- 135/204: gnu: Add python-httpx-bootstrap., (continued)
- 135/204: gnu: Add python-httpx-bootstrap., guix-commits, 2022/04/20
- 137/204: gnu: python-uvicorn: Update to 0.17.6., guix-commits, 2022/04/20
- 149/204: gnu: python-numpy: Update to 1.21.6 and parallelize build/tests., guix-commits, 2022/04/20
- 83/204: gnu: Add python-compreffor., guix-commits, 2022/04/20
- 121/204: gnu: Add python-pep621., guix-commits, 2022/04/20
- 130/204: gnu: Add python-openapi-schema-validator., guix-commits, 2022/04/20
- 136/204: gnu: python-httpx: Update to 0.22.0., guix-commits, 2022/04/20
- 140/204: gnu: python-sqlalchemy: Update to 1.4.35., guix-commits, 2022/04/20
- 141/204: gnu: Add python-pecan., guix-commits, 2022/04/20
- 142/204: gnu: Add python-aioredis., guix-commits, 2022/04/20
- 152/204: gnu: python-pandas: Build and run tests in parallel.,
guix-commits <=
- 155/204: gnu: python-pynndescent: Update to 0.5.6., guix-commits, 2022/04/20
- 153/204: gnu: python-pandas: Update to 1.4.2., guix-commits, 2022/04/20
- 157/204: gnu: python-jupyter-server: Update to 1.16.0., guix-commits, 2022/04/20
- 158/204: gnu: python-voila: Update to 0.3.5., guix-commits, 2022/04/20
- 159/204: gnu: python-sparqlwrapper: Update to 2.0.0., guix-commits, 2022/04/20
- 167/204: gnu: mbed-tools: Update to 7.53.0 and relax click version requirement., guix-commits, 2022/04/20
- 169/204: gnu: python-parse-type: Update to 0.6.0, fixing build., guix-commits, 2022/04/20
- 170/204: gnu: Add python-bson., guix-commits, 2022/04/20
- 171/204: gnu: python-can: Update to 4.0.0., guix-commits, 2022/04/20
- 174/204: gnu: python-celery: Update to 5.2.6 and enable tests., guix-commits, 2022/04/20