git: 6d0e2b9ce201 - main - devel/py-autoray: update 0.8.4 → 0.11.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 12 Sep 2026 00:37:44 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=6d0e2b9ce20199ee321fee7afeed0d1d3ba135ae
commit 6d0e2b9ce20199ee321fee7afeed0d1d3ba135ae
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-09-11 17:22:10 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-09-12 00:37:21 +0000
devel/py-autoray: update 0.8.4 → 0.11.0
---
devel/py-autoray/Makefile | 5 ++---
devel/py-autoray/distinfo | 6 +++---
devel/py-autoray/files/patch-tests_conftest.py | 24 ++++++++++++++++++++++++
3 files changed, 29 insertions(+), 6 deletions(-)
diff --git a/devel/py-autoray/Makefile b/devel/py-autoray/Makefile
index 4baa0d38040d..5cb3915811bb 100644
--- a/devel/py-autoray/Makefile
+++ b/devel/py-autoray/Makefile
@@ -1,6 +1,5 @@
PORTNAME= autoray
-DISTVERSION= 0.8.4
-PORTREVISION= 1
+DISTVERSION= 0.11.0
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -31,6 +30,6 @@ USE_PYTHON= pep517 autoplist concurrent pytest
NO_ARCH= yes
-# tests as of 0.8.4: 1720 passed, 1286 skipped, 68 xfailed, 12 warnings in 8.02s
+# tests as of 0.11.0: 2614 passed, 2397 skipped, 71 xfailed, 21 warnings in 60.31s
.include <bsd.port.mk>
diff --git a/devel/py-autoray/distinfo b/devel/py-autoray/distinfo
index a784286f270d..4bcf9a400e0d 100644
--- a/devel/py-autoray/distinfo
+++ b/devel/py-autoray/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1764921557
-SHA256 (autoray-0.8.4.tar.gz) = b4ce7066334279b216431a260bb5b5b84d87815e3295020a76d8701e43dc3432
-SIZE (autoray-0.8.4.tar.gz) = 1321434
+TIMESTAMP = 1789143069
+SHA256 (autoray-0.11.0.tar.gz) = ef9c23d8307f2e5030d10dd222d304401450157172a6fcc6f7456b6e82681bf4
+SIZE (autoray-0.11.0.tar.gz) = 1385745
diff --git a/devel/py-autoray/files/patch-tests_conftest.py b/devel/py-autoray/files/patch-tests_conftest.py
new file mode 100644
index 000000000000..7360769374e1
--- /dev/null
+++ b/devel/py-autoray/files/patch-tests_conftest.py
@@ -0,0 +1,24 @@
+-- Handle the case when jax is installed but jaxlib is not available,
+-- which causes an ImportError when importing jax. In this case, jax
+-- should be excluded from the available backends.
+--- tests/conftest.py.orig 2026-09-11 16:12:26 UTC
++++ tests/conftest.py
+@@ -24,11 +24,14 @@ for _lib in _ALL_BACKENDS:
+ if _lib_available:
+ _AVAILABLE_BACKENDS.add(_lib)
+ if _lib == "jax":
+- import jax
++ try:
++ import jax
+
+- jax.config.update("jax_enable_x64", True)
+- jax.config.update("jax_platform_name", "cpu")
+- os.environ["XLA_PYTHON_CLIENT_ALLOCATOR"] = "platform"
++ jax.config.update("jax_enable_x64", True)
++ jax.config.update("jax_platform_name", "cpu")
++ os.environ["XLA_PYTHON_CLIENT_ALLOCATOR"] = "platform"
++ except (ImportError, ModuleNotFoundError):
++ _AVAILABLE_BACKENDS.discard(_lib)
+
+ elif _lib == "mlx":
+ # default to cpu, since many linear algebra decompositions are