Skip to content

Commit d88611a

Browse files
authored
Lift minimum Protobuf version for Python 3.14+ on MacOS (onnx#7419)
### Motivation and Context We are seeing test errors on MacOS and Python 3.14. These errors come from Protobuf and they were fixed in #protocolbuffers/protobuf#15999 and the PR was contained since 6.31.0. Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
1 parent f393b05 commit d88611a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

requirements-min.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Minimum package versions that ONNX supports
22
# https://endoflife.date/numpy
3-
protobuf==4.25.1
3+
protobuf==4.25.1; python_version<"3.14" or sys_platform != "darwin"
4+
protobuf==6.31.0; python_version>="3.14" and sys_platform == "darwin"
45
numpy==1.23.2; python_version=="3.10"
56
numpy==1.23.2; python_version=="3.11"
67
numpy==1.26.0; python_version=="3.12"

requirements-release_build.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
build
22
wheel
3-
protobuf==4.25.1
3+
protobuf==4.25.1; python_version<"3.14" or sys_platform != "darwin"
4+
protobuf==6.31.0; python_version>="3.14" and sys_platform == "darwin"
45
setuptools

0 commit comments

Comments
 (0)