[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
329/361: gnu: python-cython-3: Update to 3.0.11.
From: |
guix-commits |
Subject: |
329/361: gnu: python-cython-3: Update to 3.0.11. |
Date: |
Fri, 22 Nov 2024 06:01:08 -0500 (EST) |
andreas pushed a commit to branch python-team
in repository guix.
commit 7f79b3601ca3c57dab0e7c4e717c353e8f2aa27a
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sat Nov 16 15:54:00 2024 +0000
gnu: python-cython-3: Update to 3.0.11.
Port test flags and check phase from python-cython to ease the process
of exclusion failing tests.
* gnu/packages/python-xyz.scm (python-cython-3): Update to 3.0.11.
[surce]: Adjust URI name as it changed in PyPI.
[build-system]: Swap to pyproject-build-system.
[native-inputs]: Add python-setuptools, and python-wheel.
Change-Id: I72b23a0e710a90fc78f93633319fb07edd0a8b20
---
gnu/packages/python-xyz.scm | 49 ++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 46 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c3feb6dd6c..53894c1a20 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8794,13 +8794,56 @@ writing C extensions for Python as easy as Python
itself.")
;; Cython 3 is not officially released yet, so distinguish the name
;; for now.
(name "python-cython-next")
- (version "3.0.8")
+ (version "3.0.11")
(source (origin
(method url-fetch)
- (uri (pypi-uri "Cython" version))
+ (uri (pypi-uri "cython" version))
(sha256
(base32
- "1rlxscrn4bgdlbhjjikknbz5s2hyvn2rjfparry5wxnmiwyl4cw3"))))
+ "1zzsn60cl1qcz11h6c3miqayb7yfxdm1x19i2fk4qav8z0mdsiki"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "-vv"
+ "-j" (number->string (parallel-job-count))
+ "-x" (string-join
+ (list "annotate_html"
+ "Debugger"
+ ;; It introduces cycle.
+ "numpy_test"
+ ;; It fails with AssertionError: Failed doctest test
+ ;; for complex_numbers_cpp.double_abs.
+ "complex_numbers_cpp"
+ ;; This test fails when running on 24 cores.
+ "cpp_stl_conversion"
+ ;; XXX: On 32-bit architectures, running the
+ ;; parallel tests fails on many-core systems, see
+ ;; <https://github.com/cython/cython/issues/2807>.
+ #$@(if (not (target-64bit?))
+ '("run.parallel")
+ '())
+ #$@(if (system-hurd?)
+ '("test_class_ref"
+ "test_compiler_directives"
+ "test_lang_version")
+ '()))
+ "|"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? test-flags #:allow-other-keys)
+ ;; Disable compiler optimizations to greatly reduce the running
+ ;; time of the test suite.
+ (setenv "CFLAGS" "-O0")
+ ;; Some tests require access to "$HOME/.cython".
+ (setenv "HOME" "/tmp")
+ (when tests?
+ (apply invoke "python" "runtests.py" test-flags)))))))
+ (native-inputs
+ (list libxcrypt
+ python-setuptools
+ python-wheel))
(properties '())))
;; NOTE: when upgrading numpy please make sure that python-numba,
- 31/361: gnu: python-prompt-toolkit: Update to 3.0.43., (continued)
- 31/361: gnu: python-prompt-toolkit: Update to 3.0.43., guix-commits, 2024/11/22
- 37/361: gnu: python-eventlet: Update to 0.35.2., guix-commits, 2024/11/22
- 43/361: gnu: python-pytest-arraydiff: Add missing inputs., guix-commits, 2024/11/22
- 75/361: gnu: Add python-nbclassic., guix-commits, 2024/11/22
- 202/361: gnu: python-uqbar: Upgrade to python-team branch., guix-commits, 2024/11/22
- 279/361: gnu: python-pysolr: Update to 3.10.0., guix-commits, 2024/11/22
- 304/361: gnu: python-pexpect: Improve package style., guix-commits, 2024/11/22
- 312/361: gnu: python-pytest-cov: Update to 6.0.0., guix-commits, 2024/11/22
- 316/361: gnu: python-cffi: Improve package style., guix-commits, 2024/11/22
- 318/361: gnu: python-parso: Update to 0.8.4., guix-commits, 2024/11/22
- 329/361: gnu: python-cython-3: Update to 3.0.11.,
guix-commits <=
- 335/361: gnu: python-numpy: Update to 1.24.4., guix-commits, 2024/11/22
- 336/361: gnu: python-isort: Update to 5.13.2., guix-commits, 2024/11/22
- 352/361: gnu: python-apispec: Update to 6.7.1., guix-commits, 2024/11/22
- 53/361: gnu: python-dbus-python: Add missing input., guix-commits, 2024/11/22
- 64/361: gnu: Add python-pep440., guix-commits, 2024/11/22
- 73/361: gnu: Add python-pytest-jupyter., guix-commits, 2024/11/22
- 69/361: gnu: Add python-uri-template., guix-commits, 2024/11/22
- 66/361: gnu: Add python-jsonschema-specifications., guix-commits, 2024/11/22
- 79/361: gnu: python-argon2-cffi: Update to 21.1.0., guix-commits, 2024/11/22
- 80/361: gnu: python-jsonschema: Update to 4.22.0., guix-commits, 2024/11/22