[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: |
Thu, 21 Nov 2024 06:28:56 -0500 (EST) |
sharlatan pushed a commit to branch python-team
in repository guix.
commit b3b10e7aeea9446ebbfcfb3b9c54643c6b5570ed
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
- 26/361: gnu: python-myst-parser: Relax some requirements., (continued)
- 26/361: gnu: python-myst-parser: Relax some requirements., guix-commits, 2024/11/21
- 43/361: gnu: python-pytest-arraydiff: Add missing inputs., guix-commits, 2024/11/21
- 08/361: gnu: sssd: Import ensure-no-mtimes-pre-1980., guix-commits, 2024/11/21
- 10/361: build-system/pyproject: Use TOML parser., guix-commits, 2024/11/21
- 20/361: gnu: meson-python: Do not delete LICENSES directory., guix-commits, 2024/11/21
- 44/361: gnu: python-itemloaders: Fix indentation., guix-commits, 2024/11/21
- 48/361: gnu: python-joblib: Add missing inputs., guix-commits, 2024/11/21
- 49/361: gnu: python-box: Add missing input., guix-commits, 2024/11/21
- 75/361: gnu: Add python-nbclassic., guix-commits, 2024/11/21
- 71/361: gnu: Add python-overrides., guix-commits, 2024/11/21
- 91/361: gnu: python-trio: Use pyproject-build-system.,
guix-commits <=
- 65/361: gnu: Add python-referencing., guix-commits, 2024/11/21
- 07/361: gnu: criu: Remove temporary workaround., guix-commits, 2024/11/21
- 38/361: gnu: python-argcomplete: Add missing input., guix-commits, 2024/11/21
- 37/361: gnu: python-eventlet: Update to 0.35.2., guix-commits, 2024/11/21
- 39/361: gnu: java-testng: Drop input labels., guix-commits, 2024/11/21
- 41/361: gnu: python-pycurl: Add missing inputs., guix-commits, 2024/11/21
- 46/361: gnu: python-mysqlclient: Add missing inputs., guix-commits, 2024/11/21
- 69/361: gnu: Add python-uri-template., guix-commits, 2024/11/21
- 64/361: gnu: Add python-pep440., guix-commits, 2024/11/21
- 57/361: gnu: snakemake-6: Add Setuptools and Wheel., guix-commits, 2024/11/21