You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by xt...@apache.org on 2025/11/04 11:09:57 UTC
(flink-agents) 01/03: [hotfix] Fix CI failure due to latest version of the onnxruntime dependency not supporting macos
This is an automated email from the ASF dual-hosted git repository.
xtsong pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-agents.git
commit 51bfde725844653805e202ab0b4cdc4186d79b66
Author: Marcelo Colomer <mc...@confluent.io>
AuthorDate: Sat Oct 25 21:13:14 2025 +0800
[hotfix] Fix CI failure due to latest version of the onnxruntime dependency not supporting macos
---
python/pyproject.toml | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/python/pyproject.toml b/python/pyproject.toml
index 47231f6..e420e65 100644
--- a/python/pyproject.toml
+++ b/python/pyproject.toml
@@ -103,6 +103,21 @@ archs = ["x86_64"]
# Currently a single package project, but ready for workspace expansion
members = ["."]
+# Configure platform-specific dependency resolution
+[tool.uv]
+# Ensure uv resolves to compatible versions for macOS ARM64
+constraint-dependencies = [
+ # Use a compatible onnxruntime version for macOS ARM64
+ "onnxruntime>=1.16.0,<1.23.0; sys_platform == 'darwin' and platform_machine == 'arm64'",
+]
+
+# Configure required environments for platform compatibility
+required-environments = [
+ "sys_platform == 'darwin' and platform_machine == 'arm64'",
+ "sys_platform == 'linux'",
+ "sys_platform == 'win32'",
+]
+
[tool.ruff]
line-length = 88
fix = true
@@ -178,4 +193,4 @@ ban-relative-imports = "all"
strict = true
[tool.ruff.format]
-docstring-code-format = true
\ No newline at end of file
+docstring-code-format = true