[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
95/204: gnu: python-trio: Update to 0.20.0.
From: |
guix-commits |
Subject: |
95/204: gnu: python-trio: Update to 0.20.0. |
Date: |
Wed, 20 Apr 2022 02:03:26 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit 4214db6b8de0abff70f0775f2a4449551132872d
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sun Apr 10 22:57:17 2022 -0400
gnu: python-trio: Update to 0.20.0.
* gnu/packages/python-xyz.scm (python-trio): Update to 0.20.0.
[phases]{patch-sleep}: New phase.
[change-home]: Delete trailing #t.
{check}: Run tests in parallel. Disable the
test_cancel_scope_exit_doesnt_create_cyclic_garbage,
test_ipython_exc_handler,
test_for_leaking_fds and test_static_tool_sees_all_symbols tests.
[native-inputs]: Add python-pytest-xdist.
---
gnu/packages/python-xyz.scm | 24 ++++++++++++++++++------
1 file changed, 18 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 96a04009bc..d987c9cbcd 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24380,26 +24380,32 @@ project.")
(define-public python-trio
(package
(name "python-trio")
- (version "0.19.0")
+ (version "0.20.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "trio" version))
(sha256
- (base32 "1qgg4zhca81dxc1nlmcr5pl1bclmvdp3niqbyslwxs65bs732pl9"))))
+ (base32 "0w30cwmdwfa8zq2agqv3h62jzwwsk7ms8f683ag8f3jx279m42k7"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'patch-sleep
+ (lambda _
+ (substitute* "trio/tests/test_subprocess.py"
+ (("/bin/sleep")
+ (which "sleep")))))
(add-before 'check 'change-home
(lambda _
;; Tests require a writable home.
- (setenv "HOME" "/tmp")
- #t))
+ (setenv "HOME" "/tmp")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
- (invoke "pytest" "-vv" "-k"
+ (invoke "pytest" "-vv"
+ "-n" (number->string (parallel-job-count))
+ "-k"
(string-append
;; This test times out.
"not test_ki_protection_works"
@@ -24408,7 +24414,10 @@ project.")
" and not test_run_in_trio_thread_ki"
" and not
test_simple_cancel_scope_usage_doesnt_create_cyclic_garbage"
" and not
test_nursery_cancel_doesnt_create_cyclic_garbage"
+ " and not
test_cancel_scope_exit_doesnt_create_cyclic_garbage"
" and not test_locals_destroyed_promptly_on_cancel"
+ " and not test_ipython_exc_handler"
+ " and not test_for_leaking_fds"
;; These try to raise KeyboardInterrupt which does
not work
;; in the build environment.
" and not test_ki_self"
@@ -24417,7 +24426,9 @@ project.")
" and not test_getnameinfo"
" and not test_SocketType_resolve"
;; OSError: protocol not found.
- " and not test_getprotobyname"))))))))
+ " and not test_getprotobyname"
+ ;; EOFError: Ran out of input.
+ " and not test_static_tool_sees_all_symbols"))))))))
(native-inputs
(list python-astor
python-ipython
@@ -24425,6 +24436,7 @@ project.")
python-pylint
python-pyopenssl
python-pytest
+ python-pytest-xdist
python-pytest-cov
python-trustme))
(propagated-inputs
- 41/204: gnu: Add python-types-freezegun., (continued)
- 41/204: gnu: Add python-types-freezegun., guix-commits, 2022/04/20
- 48/204: gnu: python-pytest-black: Update to 0.3.12., guix-commits, 2022/04/20
- 60/204: gnu: python-factory-boy: Update to 3.2.1., guix-commits, 2022/04/20
- 68/204: gnu: python-setuptools: Update to 62.0.0., guix-commits, 2022/04/20
- 72/204: gnu: Add python-scikit-build., guix-commits, 2022/04/20
- 86/204: gnu: Add font-amiri., guix-commits, 2022/04/20
- 59/204: gnu: Add python-pytest-perf., guix-commits, 2022/04/20
- 65/204: gnu: Add python-ordered-set., guix-commits, 2022/04/20
- 91/204: gnu: python-flask: Update to 2.1.1., guix-commits, 2022/04/20
- 94/204: gnu: pylint: Run tests in parallel., guix-commits, 2022/04/20
- 95/204: gnu: python-trio: Update to 0.20.0.,
guix-commits <=
- 98/204: gnu: python-greenlet: Update to 1.1.2., guix-commits, 2022/04/20
- 103/204: gnu: python-jupyter-core: Update to 4.10.0., guix-commits, 2022/04/20
- 105/204: gnu: python-ipykernel: Update to 6.13.0., guix-commits, 2022/04/20
- 112/204: gnu: Add texlive-lm-math., guix-commits, 2022/04/20
- 144/204: gnu: python-falcon: Update to 3.1.0., guix-commits, 2022/04/20
- 43/204: gnu: Add python-pytest-freezegun., guix-commits, 2022/04/20
- 45/204: gnu: Add python-path-bootstrap., guix-commits, 2022/04/20
- 46/204: gnu: Add python-pip-run-bootstrap., guix-commits, 2022/04/20
- 55/204: gnu: Add python-pytest-enabler., guix-commits, 2022/04/20
- 57/204: gnu: Add python-pip-run., guix-commits, 2022/04/20