mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Respect --cores build argument in some python packages.
Reported by Greg Hogan <code@greghogan.com> in #74445. * gnu/packages/astronomy.scm (python-asdf-astropy, python-astropy, python-photutils, python-poppy, python-regions, python-reproject, python-sunpy, python-spectral-cube, python-stdatamodels, python-pysiaf, python-sbpy, python-asdf-coordinates-schemas, python-roman-datamodels, python-webbpsf, python-yt): [arguments]<test-flags>: Adjust "-n" or "--numprocess" to respect "--cores" build argument. * gnu/packages/check.scm (python-crosshair): Likewise. * gnu/packages/databases.scm (python-fastparquet, python-pycurl, awscli, python-s3transfer): Likewise. * gnu/packages/python-xyz.scm (python-glymur, python-zarr, python-dask): Likewise. Change-Id: Ifbc6435e4ad22b0ae822b485bccca41eaa165cc5
This commit is contained in:
parent
8d6389b866
commit
d3b010c38c
5 changed files with 24 additions and 23 deletions
|
@ -1653,7 +1653,7 @@ implementation of the ASDF Standard.")
|
|||
(arguments
|
||||
(list
|
||||
#:test-flags
|
||||
#~(list "-n" "auto")
|
||||
#~(list "--numprocesses" (number->string (parallel-job-count)))
|
||||
#:phases #~(modify-phases %standard-phases
|
||||
(add-before 'check 'set-home-env
|
||||
(lambda _ (setenv "HOME" "/tmp"))))))
|
||||
|
@ -3034,7 +3034,7 @@ deconvolution). Such post-processing is not performed by Stackistry.")
|
|||
(list
|
||||
#:test-flags
|
||||
#~(list "--pyargs" "astropy"
|
||||
"--numprocesses" "auto"
|
||||
"--numprocesses" (number->string (parallel-job-count))
|
||||
"-k" (string-append
|
||||
;; Skip tests that need remote data.
|
||||
"not remote_data"
|
||||
|
@ -3924,7 +3924,7 @@ can be described by @acronym{WCS, World Coordinate System} translations.")
|
|||
(arguments
|
||||
(list
|
||||
#:test-flags
|
||||
#~(list "--numprocesses" "auto")
|
||||
#~(list "--numprocesses" (number->string (parallel-job-count)))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'relax-requirements
|
||||
|
@ -4085,7 +4085,7 @@ Low-Earth Orbit (LEO).")
|
|||
(arguments
|
||||
(list
|
||||
#:test-flags
|
||||
#~(list "-n" "auto")))
|
||||
#~(list "--numprocesses" (number->string (parallel-job-count)))))
|
||||
(propagated-inputs
|
||||
;; XXX: With python-synphot (marked as optional) package added to the list
|
||||
;; it tries to download from remote host during tests and fails. Overall
|
||||
|
@ -4191,7 +4191,7 @@ Virtual observatory (VO) using Python.")
|
|||
(arguments
|
||||
(list
|
||||
#:test-flags
|
||||
#~(list "--numprocesses" "auto")
|
||||
#~(list "--numprocesses" (number->string (parallel-job-count)))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
;; setup.py was removed in 84c80a280431adda00641cda5264c7de18b43b2f
|
||||
|
@ -4295,7 +4295,7 @@ PSF} describing how the optical system spreads light from sources.")
|
|||
#:test-flags
|
||||
#~(list "--arraydiff"
|
||||
"--arraydiff-default-format=fits"
|
||||
"--numprocesses" "auto"
|
||||
"--numprocesses" (number->string (parallel-job-count))
|
||||
"--pyargs" "reproject")
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
|
@ -4399,7 +4399,7 @@ orbits described in TLE files.")
|
|||
(arguments
|
||||
(list
|
||||
#:test-flags
|
||||
#~(list "--numprocesses" "auto"
|
||||
#~(list "--numprocesses" (number->string (parallel-job-count))
|
||||
;; Requries SpicePy not packed in Guix yet.
|
||||
"--ignore=sunpy/coordinates/tests/test_spice.py")
|
||||
#:phases
|
||||
|
@ -4589,7 +4589,7 @@ elevation, solar azimuth, rahukaalam, and the phases of the moon.")
|
|||
;; See <https://github.com/radio-astro-tools/radio-beam/issues/129>.
|
||||
#:tests? #f
|
||||
#:test-flags
|
||||
#~(list "-n" "auto")))
|
||||
#~(list "--numprocesses" (number->string (parallel-job-count)))))
|
||||
(propagated-inputs
|
||||
(list python-astropy
|
||||
;; XXX: Currently failing in upstream as it's optional silent
|
||||
|
@ -4981,7 +4981,7 @@ processing functions: @code{xyxymatch}, @code{geomap}.")
|
|||
(arguments
|
||||
(list
|
||||
#:test-flags
|
||||
#~(list "--numprocesses" "auto"
|
||||
#~(list "--numprocesses" (number->string (parallel-job-count))
|
||||
;; Disable tests requiring access to CRDS servers to download
|
||||
;; ~500MiB of data.
|
||||
"-k" "not test_crds_selectors_vs_datamodel")
|
||||
|
@ -5450,7 +5450,7 @@ Features:
|
|||
(arguments
|
||||
(list
|
||||
#:test-flags
|
||||
#~(list "--numprocesses" "auto"
|
||||
#~(list "--numprocesses" (number->string (parallel-job-count))
|
||||
;; Disable 2 failing tests, see
|
||||
;; <https://github.com/spacetelescope/pysiaf/issues/338>
|
||||
"-k" (string-append "not test_write_jwst_siaf_xlsx"
|
||||
|
@ -5543,7 +5543,8 @@ spectra, and data.")
|
|||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:test-flags #~(list "--numprocesses" "auto")
|
||||
#:test-flags
|
||||
#~(list "--numprocesses" (number->string (parallel-job-count)))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-before 'check 'set-home-env
|
||||
|
@ -5835,7 +5836,7 @@ package such as asdf-astropy.")
|
|||
(arguments
|
||||
(list
|
||||
#:test-flags
|
||||
#~(list "-n" "auto")))
|
||||
#~(list "--numprocesses" (number->string (parallel-job-count)))))
|
||||
(native-inputs
|
||||
(list python-pytest
|
||||
python-pytest-xdist
|
||||
|
@ -6137,7 +6138,7 @@ solar physics.")
|
|||
(arguments
|
||||
(list
|
||||
#:test-flags
|
||||
#~(list "--numprocesses" "auto")
|
||||
#~(list "--numprocesses" (number->string (parallel-job-count)))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'set-env
|
||||
|
@ -6295,7 +6296,7 @@ between image and reference catalogs. Currently only aligning images with
|
|||
(arguments
|
||||
(list
|
||||
#:test-flags
|
||||
#~(list "--numprocesses" "auto"
|
||||
#~(list "--numprocesses" (number->string (parallel-job-count))
|
||||
"-k" (string-append
|
||||
;; Test requiring network access
|
||||
"not test_monthly_trending_plot_auto_opdtable"
|
||||
|
@ -6383,7 +6384,7 @@ using (multivariate) polynomials.")
|
|||
(list
|
||||
#:build-backend "setuptools.build_meta"
|
||||
#:test-flags
|
||||
#~(list "--numprocesses" "auto")
|
||||
#~(list "--numprocesses" (number->string (parallel-job-count)))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'relax-requirements
|
||||
|
|
|
@ -2744,7 +2744,7 @@ instantly.")
|
|||
(arguments
|
||||
(list
|
||||
#:test-flags
|
||||
#~(list "--numprocesses" "auto"
|
||||
#~(list "--numprocesses" (number->string (parallel-job-count))
|
||||
;; check_examples_test.py contains failing tests that
|
||||
;; show what happens if a counterexample is found.
|
||||
"--ignore=crosshair/examples/check_examples_test.py"
|
||||
|
|
|
@ -5203,7 +5203,7 @@ other traditional Python scientific computing packages.")
|
|||
(arguments
|
||||
(list
|
||||
#:test-flags
|
||||
#~(list "-n" "auto")
|
||||
#~(list "--numprocesses" (number->string (parallel-job-count)))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'relax-requirements
|
||||
|
|
|
@ -2026,7 +2026,7 @@ Amazon S3 compatible object storage server.")
|
|||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
'(#:test-flags
|
||||
(list "-n" "auto"
|
||||
(list "--n" (number->string (parallel-job-count))
|
||||
"-k" (string-append
|
||||
;; Disable hanginging tests
|
||||
"not test_multi_socket_select"
|
||||
|
@ -4235,7 +4235,7 @@ opt.override_default_trust_store_from_path(None, os.getenv('SSL_CERT_FILE')) if
|
|||
(arguments
|
||||
(list
|
||||
#:test-flags
|
||||
#~(list "--numprocesses" "auto"
|
||||
#~(list "--numprocesses" (number->string (parallel-job-count))
|
||||
;; Tests require networking.
|
||||
"--ignore" "tests/integration"
|
||||
;; It strugles to set PYTHONPATH.
|
||||
|
@ -4909,7 +4909,7 @@ Betamax that may possibly end up in the main package.")
|
|||
(arguments
|
||||
(list
|
||||
#:test-flags
|
||||
#~(list "--numprocesses" "auto"
|
||||
#~(list "--numprocesses" (number->string (parallel-job-count))
|
||||
;; Tests require networking.
|
||||
"--ignore" "tests/integration")))
|
||||
(native-inputs
|
||||
|
|
|
@ -2296,7 +2296,7 @@ Python library and command line interface.")
|
|||
(arguments
|
||||
(list
|
||||
#:test-flags
|
||||
#~(list "--numprocesses" "auto"
|
||||
#~(list "--numprocesses" (number->string (parallel-job-count))
|
||||
;; Failing test due to inability of ctypes.util.find_library()
|
||||
;; to determine library path, which is patched above.
|
||||
"--ignore=tests/test_config.py")
|
||||
|
@ -28320,7 +28320,7 @@ codecs for use in data storage and communication applications.")
|
|||
(arguments
|
||||
(list
|
||||
#:test-flags
|
||||
#~(list "-n" "auto"
|
||||
#~(list "--numprocesses" (number->string (parallel-job-count))
|
||||
;; This tests are flaky. The pass several times on my laptop
|
||||
;; but occasionally fail. They fail pretty reliably on the
|
||||
;; build farm.
|
||||
|
@ -28845,7 +28845,7 @@ decisions with any given backend.")
|
|||
(list
|
||||
;; Avoid coverage
|
||||
#:test-flags
|
||||
#~(list "-n" "auto"
|
||||
#~(list "--numprocesses" (number->string (parallel-job-count))
|
||||
"-m" "not gpu and not slow and not network"
|
||||
;; These all fail with different hashes. Doesn't seem
|
||||
;; problematic.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue