From 6b77522832192b192b4270b80b0f9cd053e39895 Mon Sep 17 00:00:00 2001 From: Adrian RC Date: Thu, 28 Mar 2024 09:57:14 -0700 Subject: [PATCH] Restricts the protobuf dependency to be < 5.0.0, due to a recent breaking change. (#6814) The protobuf release 5.26.x is the first one in the major version 5, which introduces a breaking change. This change adds a restriction on that dependency. See #6808 for details. --- tensorboard/pip_package/requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tensorboard/pip_package/requirements.txt b/tensorboard/pip_package/requirements.txt index 5c259439f2..a19090f321 100644 --- a/tensorboard/pip_package/requirements.txt +++ b/tensorboard/pip_package/requirements.txt @@ -26,7 +26,8 @@ numpy >= 1.12.0 # https://github.com/tensorflow/tensorflow/blob/25adc4fccb4b0bb5a933eba1d246380e7b87d7f7/tensorflow/tools/pip_package/setup.py#L101 # 4.24.0 had an issue that broke our tests, so we should avoid that release: # https://github.com/protocolbuffers/protobuf/issues/13485 -protobuf >= 3.19.6, != 4.24.0 +# 5.26.0 introduced a breaking change, so we restricted it for now. See issue #6808 for details. +protobuf >= 3.19.6, != 4.24.0, < 5.0.0 setuptools >= 41.0.0 # Note: provides pkg_resources as well as setuptools # A dependency of our vendored packages. This lower bound has not been correctly # vetted, but I wanted to be the least restrictive we can, since it's not a new