Skip to content

Commit 3637773

Browse files
committed
fix(deps): Rework mypy-protobuf versioning so Renovate won't update the version we use for codegen
1 parent 8734435 commit 3637773

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,21 @@ nitypes = {version=">=1.0.0"}
6868
[tool.poetry.group.codegen.dependencies]
6969
Mako = "^1.2"
7070
grpcio-tools = [
71+
# requires protobuf v4 or later
7172
{ version = "1.49.1", python = ">=3.9,<3.12" },
7273
{ version = "1.59.0", python = ">=3.12,<3.13" },
74+
# requires protobuf v5 or later
7375
{ version = "1.67.0", python = ">=3.13,<3.14" },
76+
# requires protobuf v6 or later
7477
{ version = "1.75.1", python = "^3.14" },
7578
]
7679
# mypy-protobuf 3.6 is the last version that supports protobuf v4.
77-
mypy-protobuf = ">=3.4,<3.7"
80+
mypy-protobuf = [
81+
# requires protobuf v4 or later
82+
{version = ">=3.4,<3.7", python = ">=3.10,<3.14"},
83+
# requires protobuf v6 or later
84+
{version = ">=3.4", python = "^3.14"}
85+
]
7886

7987
[tool.poetry.group.docs]
8088
optional = true

0 commit comments

Comments
 (0)