mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-black: Limit number of test processes.
* gnu/packages/python-xyz.scm (python-black)[arguments]: Do not exceed 8 parallel jobs when running tests. [native-inputs]: Add python-pytest-xdist. Change-Id: Ifa0ab22e6b5c6ba3fdc588ae6a25ca4ad410936b
This commit is contained in:
parent
2b8bbc9cbc
commit
9c9eba6bab
1 changed files with 8 additions and 2 deletions
|
@ -8799,8 +8799,13 @@ and integrated feature-set for programming Python effectively.")
|
|||
"0xa8vkgbvmkdh4vsk967xh81i6g47fcqf5vngdkvrqxgjx6acvl4"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(list
|
||||
#:test-flags
|
||||
;; On the build farm we run out of resources if we let the build system
|
||||
;; autodetect the number of parallel processes.
|
||||
'(list "--numprocesses" (number->string (min (parallel-job-count) 8)))
|
||||
#:phases
|
||||
'(modify-phases %standard-phases
|
||||
(add-after 'patch-source-shebangs 'use-absolute-file-names
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* (find-files "tests" "\\.py$")
|
||||
|
@ -8818,6 +8823,7 @@ and integrated feature-set for programming Python effectively.")
|
|||
(native-inputs
|
||||
(list python-pytest
|
||||
python-pytest-aiohttp
|
||||
python-pytest-xdist
|
||||
python-hatch-fancy-pypi-readme
|
||||
python-hatch-vcs
|
||||
python-hatchling))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue