Skip to content

Commit 676df3a

Browse files
committed
fix(protobuf): require v6 runtime for checked-in gencode
1 parent 239297f commit 676df3a

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies = [
2525
"pycryptodomex~=3.18 ; sys_platform == 'darwin'",
2626
"paho-mqtt>=1.6.1,<3.0.0",
2727
"construct>=2.10.57,<3",
28-
"protobuf>=5,<7",
28+
"protobuf>=6,<7",
2929
"vacuum-map-parser-roborock",
3030
"pyrate-limiter>=4.0.0,<5",
3131
"aiomqtt>=2.5.0,<3",

roborock/map/proto/b01_scmap.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Checked-in B01/Q7 SCMap schema for the generated runtime protobuf module.
22
// Regenerate the checked-in Python module after edits with:
33
// python -m grpc_tools.protoc -I./roborock/map/proto --python_out=./roborock/map/proto roborock/map/proto/b01_scmap.proto
4+
// Keep protoc/python-protobuf on major version 6 when generating this file so
5+
// the checked-in gencode stays compatible with the runtime dependency range.
46
// The generated file `b01_scmap_pb2.py` is checked in for runtime use and should
57
// not be edited by hand.
68
syntax = "proto2";

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)