From f532c4d382c59ea68a8afb3bd0420d22be7e13da Mon Sep 17 00:00:00 2001 From: Peter Webb Date: Thu, 22 Feb 2024 17:03:34 -0500 Subject: [PATCH] Upcoming protobuf 5 contains breaking changes, restrict to 4 for now. (#81) * Upcoming protobuf 5 contains breaking changes, restrict to 4 for now. * Add changelog entry. --------- Co-authored-by: Gerda Shank --- .changes/unreleased/Under the Hood-20240221-104344.yaml | 6 ++++++ pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changes/unreleased/Under the Hood-20240221-104344.yaml diff --git a/.changes/unreleased/Under the Hood-20240221-104344.yaml b/.changes/unreleased/Under the Hood-20240221-104344.yaml new file mode 100644 index 00000000..bd1423a9 --- /dev/null +++ b/.changes/unreleased/Under the Hood-20240221-104344.yaml @@ -0,0 +1,6 @@ +kind: Under the Hood +body: Restrict protobuf library to major version 4. +time: 2024-02-21T10:43:44.642458-05:00 +custom: + Author: peterallenwebb + Issue: "9566" diff --git a/pyproject.toml b/pyproject.toml index 03e046d6..10104d46 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ dependencies = [ "Jinja2~=3.0", "mashumaro[msgpack]~=3.9", "pathspec>=0.9,<0.12", - "protobuf>=4.0.0", + "protobuf>=4.0.0,<5.0.0", "python-dateutil~=2.0", "requests<3.0.0", "typing-extensions~=4.4",