[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
95/166: gnu: python-trio: Update to 0.20.0.
From: |
guix-commits |
Subject: |
95/166: gnu: python-trio: Update to 0.20.0. |
Date: |
Tue, 19 Apr 2022 09:18:02 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython+polyglossia
in repository guix.
commit 4443815be1d7c9cd07334f1a7246d8753c0835e3
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 4c8668f5ee..a3d8cf38e0 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24383,26 +24383,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"
@@ -24411,7 +24417,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"
@@ -24420,7 +24429,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
@@ -24428,6 +24439,7 @@ project.")
python-pylint
python-pyopenssl
python-pytest
+ python-pytest-xdist
python-pytest-cov
python-trustme))
(propagated-inputs
- 66/166: gnu: Add python-xdoctest., (continued)
- 66/166: gnu: Add python-xdoctest., guix-commits, 2022/04/19
- 69/166: gnu: python-pathpy: Deprecate by python-path., guix-commits, 2022/04/19
- 73/166: gnu: python-jupyter-packaging: Update to 0.12.0, run test suite., guix-commits, 2022/04/19
- 75/166: gnu: python-scipy: Update to 1.8.0 and enable parallel build., guix-commits, 2022/04/19
- 74/166: gnu: python-scipy: Move input fields below arguments field., guix-commits, 2022/04/19
- 80/166: gnu: Add skia., guix-commits, 2022/04/19
- 83/166: gnu: Add python-compreffor., guix-commits, 2022/04/19
- 87/166: gnu: Add font-sil-ezra., guix-commits, 2022/04/19
- 86/166: gnu: Add font-amiri., guix-commits, 2022/04/19
- 92/166: gnu: Add python-untangle., guix-commits, 2022/04/19
- 95/166: gnu: python-trio: Update to 0.20.0.,
guix-commits <=
- 101/166: gnu: Add python-ipyparallel-bootstrap., guix-commits, 2022/04/19
- 106/166: gnu: Add python-pytest-tornado., guix-commits, 2022/04/19
- 108/166: gnu: python-anyio: Update to 3.5.0., guix-commits, 2022/04/19
- 127/166: gnu: python-websockets: Update to 10.3 and enable tests., guix-commits, 2022/04/19
- 128/166: gnu: Add python-strict-rfc3339., guix-commits, 2022/04/19
- 139/166: gnu: python-sqlalchemy: Run tests in parallel via xdist., guix-commits, 2022/04/19
- 90/166: gnu: python-click: Update to 8.1.2 and honor TESTS?., guix-commits, 2022/04/19
- 97/166: gnu: Add python-debugpy., guix-commits, 2022/04/19
- 102/166: gnu: python-nest-asyncio: Update to 1.5.5., guix-commits, 2022/04/19
- 110/166: gnu: python-bleach: Update to 5.0.0., guix-commits, 2022/04/19