gnu: python-sunpy: Speed up tests and relax requirements.
* gnu/packages/astronomy.scm (python-sunpy): Enable parallel tests to speed them up. [arguments] <#:test-flags>: Add it with "-n" option. <#:phases>: Add 'relax-requirements. Change-Id: I67c3308b8c5e9b878377f2175f74f1c469a43610master
parent
6b0551a6bb
commit
0330bb8b68
|
@ -2591,16 +2591,24 @@ orbits described in TLE files.")
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:test-flags
|
#:test-flags
|
||||||
#~(list "-k" (string-append
|
#~(list
|
||||||
;; XXX: Failed: DID NOT RAISE <class 'ModuleNotFoundError'>
|
"-n" "auto"
|
||||||
;; It struggles to find python-opencsv package info with
|
"-k" (string-append
|
||||||
;; 'importlib.metadata'
|
;; XXX: Failed: DID NOT RAISE <class 'ModuleNotFoundError'>
|
||||||
"not test_main_nonexisting_module"
|
;; It struggles to find python-opencsv package info with
|
||||||
" and not test_main_stdlib_module")
|
;; 'importlib.metadata'
|
||||||
;; Requries SpicePy not packed in Guix yet.
|
"not test_main_nonexisting_module"
|
||||||
"--ignore=sunpy/coordinates/tests/test_spice.py")
|
" and not test_main_stdlib_module")
|
||||||
|
;; Requries SpicePy not packed in Guix yet.
|
||||||
|
"--ignore=sunpy/coordinates/tests/test_spice.py")
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'relax-requirements
|
||||||
|
(lambda _
|
||||||
|
(substitute* "setup.cfg"
|
||||||
|
;; It's already updated in master branch, but not released yet.
|
||||||
|
;; drms>=0.6.1,<0.7.0
|
||||||
|
(("0.7.0") "0.7.2"))))
|
||||||
(add-before 'install 'writable-compiler
|
(add-before 'install 'writable-compiler
|
||||||
(lambda _
|
(lambda _
|
||||||
(make-file-writable "sunpy/_compiler.c")))
|
(make-file-writable "sunpy/_compiler.c")))
|
||||||
|
|
Reference in New Issue