[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
91/361: gnu: python-trio: Use pyproject-build-system.
From: |
guix-commits |
Subject: |
91/361: gnu: python-trio: Use pyproject-build-system. |
Date: |
Fri, 22 Nov 2024 06:00:18 -0500 (EST) |
andreas pushed a commit to branch python-team
in repository guix.
commit 45e9eed2aa0d4e7da6219ba7aaefd66d80886428
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon May 6 23:08:39 2024 +0200
gnu: python-trio: Use pyproject-build-system.
* gnu/packages/python-xyz.scm (python-trio)[build-system]: Use
pyproject-build-system.
[arguments]: Replace custom 'check phase with #:test-flags.
Change-Id: I246933a17c1d0a669ead0292145d9b986ffca185
---
gnu/packages/python-xyz.scm | 77 +++++++++++++++++++++++----------------------
1 file changed, 39 insertions(+), 38 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e050a6b0c5..03a6bcaea7 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -29767,10 +29767,42 @@ project.")
(uri (pypi-uri "trio" version))
(sha256
(base32 "04qwzy4295ajxpns0hrmn3asma80sjpimzpb3i877vwynsvkjgsj"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
+ (list
+ #:test-flags
+ '(list "-k"
+ (string-append
+ ;; This test times out.
+ "not test_ki_protection_works"
+ ;; This fails with: signal only works in main thread of the main
interpreter
+ " and not test_catch_signals_race_condition_on_exit"
+ ;; Assertion errors.
+ " and not test_guest_mode_ki"
+ " 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"
+ ;; Signals don’t work in the build sandbox.
+ " and not test_open_signal_receiver"
+ ;; These try to raise KeyboardInterrupt which does not work
+ ;; in the build environment.
+ " and not test_ki_self"
+ " and not test_ki_wakes_us_up"
+ ;; Failure in name resolution.
+ " and not test_getnameinfo"
+ " and not test_SocketType_resolve"
+ ;; OSError: protocol not found.
+ " and not test_getprotobyname"
+ ;; EOFError: Ran out of input.
+ " and not test_static_tool_sees_all_symbols")
+ "trio/tests")
+ #:phases
+ '(modify-phases %standard-phases
(add-after 'unpack 'patch-sleep
(lambda _
(substitute* "trio/tests/test_subprocess.py"
@@ -29779,40 +29811,7 @@ project.")
(add-before 'check 'change-home
(lambda _
;; Tests require a writable home.
- (setenv "HOME" "/tmp")))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-vv"
- "-n" (number->string (parallel-job-count))
- "-k"
- (string-append
- ;; This test times out.
- "not test_ki_protection_works"
- ;; Assertion errors.
- " and not test_guest_mode_ki"
- " 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"
- ;; Signals don’t work in the build sandbox.
- " and not test_open_signal_receiver"
- ;; These try to raise KeyboardInterrupt which does
not work
- ;; in the build environment.
- " and not test_ki_self"
- " and not test_ki_wakes_us_up"
- ;; Failure in name resolution.
- " and not test_getnameinfo"
- " and not test_SocketType_resolve"
- ;; OSError: protocol not found.
- " and not test_getprotobyname"
- ;; EOFError: Ran out of input.
- " and not test_static_tool_sees_all_symbols")
- "trio/tests")))))))
+ (setenv "HOME" "/tmp"))))))
(native-inputs
(list python-astor
python-ipython
@@ -29822,7 +29821,9 @@ _cyclic_garbage"
python-pytest
python-pytest-xdist
python-pytest-cov
- python-trustme))
+ python-trustme
+ python-setuptools
+ python-wheel))
(propagated-inputs
(list python-async-generator
python-attrs
- 296/361: gnu: python-fast-histogram: Adjust inputs., (continued)
- 296/361: gnu: python-fast-histogram: Adjust inputs., guix-commits, 2024/11/22
- 339/361: gnu: Add python-ephemeral-port-reserve., guix-commits, 2024/11/22
- 345/361: gnu: python-pandas-2: Update to 2.2.3., guix-commits, 2024/11/22
- 47/361: gnu: python-vine: Add missing inputs., guix-commits, 2024/11/22
- 338/361: gnu: python-watchdog: Update to 6.0.0., guix-commits, 2024/11/22
- 52/361: gnu: python-pyproject-metadata: Disable two tests., guix-commits, 2024/11/22
- 49/361: gnu: python-box: Add missing input., guix-commits, 2024/11/22
- 48/361: gnu: python-joblib: Add missing inputs., guix-commits, 2024/11/22
- 84/361: gnu: python-jupyter-kernel-mgmt: Use Tornado 6., guix-commits, 2024/11/22
- 92/361: gnu: python-jupyter-client: Update to 7.4.4., guix-commits, 2024/11/22
- 91/361: gnu: python-trio: Use pyproject-build-system.,
guix-commits <=
- 121/361: gnu: python-rope: Update to 1.13.0., guix-commits, 2024/11/22
- 129/361: gnu: python-mistune: Update to 3.0.2., guix-commits, 2024/11/22
- 138/361: gnu: python-black: Move to pyproject-build-system., guix-commits, 2024/11/22
- 123/361: gnu: python-lsp-server: Update to 1.11.0., guix-commits, 2024/11/22
- 139/361: gnu: python-isort: Move to pyproject-build-system., guix-commits, 2024/11/22
- 140/361: gnu: python-codespell: Improve package style., guix-commits, 2024/11/22
- 142/361: gnu: python-http-ece: Update to 1.2.0., guix-commits, 2024/11/22
- 144/361: gnu: python-aionotify: Update to 0.3.0., guix-commits, 2024/11/22
- 153/361: gnu: python-apiron: Move to pyproject-build-system., guix-commits, 2024/11/22
- 171/361: gnu: python-cucumber-tag-expressions: Move to pyproject-build-system., guix-commits, 2024/11/22