Skip to content

Commit 2a2b83b

Browse files
Update protobuf (#1082)
* Update `protobuf`. * Fix configuration test. * Format * Update protobuf dependency version range --------- Co-authored-by: Tim Conley <[email protected]>
1 parent 84b184f commit 2a2b83b

File tree

3 files changed

+71
-69
lines changed

3 files changed

+71
-69
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ keywords = [
1212
]
1313
dependencies = [
1414
"nexus-rpc==1.1.0",
15-
"protobuf>=3.20,<6",
15+
"protobuf>=3.20,<7.0.0",
1616
"python-dateutil>=2.8.2,<3 ; python_version < '3.11'",
1717
"types-protobuf>=3.20",
1818
"typing-extensions>=4.2.0,<5",

tests/conftest.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@
3131
"3."
3232
), f"Expected protobuf 3.x, got {protobuf_version}"
3333
else:
34-
assert protobuf_version.startswith("4.") or protobuf_version.startswith(
35-
"5."
36-
), f"Expected protobuf 4.x/5.x, got {protobuf_version}"
34+
assert (
35+
protobuf_version.startswith("4.")
36+
or protobuf_version.startswith("5.")
37+
or protobuf_version.startswith("6.")
38+
), f"Expected protobuf 4.x/5.x/6.x, got {protobuf_version}"
3739

3840
from temporalio.client import Client
3941
from temporalio.testing import WorkflowEnvironment

0 commit comments

Comments
 (0)