Skip to content

Commit 00d02ca

Browse files
authored
fix(deps): Rework mypy-protobuf versioning so Renovate won't update the version we use for codegen (#1272)
* fix(deps): Rework mypy-protobuf dependencies so Renovate won't upgrade the version we use for codegen * chore: Update poetry.lock
1 parent 8efdaf9 commit 00d02ca

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

packages/generator/poetry.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.

packages/generator/pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ pytest-cov = ">=3.0.0"
3939
ni-python-styleguide = ">=0.4.1"
4040
mypy = ">=1.0"
4141
# mypy-protobuf 3.6 is the last version that supports protobuf v4.
42-
mypy-protobuf = ">=3.4,<3.7"
42+
mypy-protobuf = [
43+
# requires protobuf v4 or later
44+
{version = ">=3.4,<3.7", python = ">=3.10,<3.14"},
45+
# requires protobuf v6 or later
46+
{version = ">=3.4", python = "^3.14"}
47+
]
4348
types-protobuf = ">=4.21"
4449
types-grpcio = ">=1.0"
4550
# During development, use file paths to reference the latest source for packages
@@ -48,9 +53,12 @@ ni-measurement-plugin-sdk-service = {path = "../../packages/service", develop =
4853
bandit = { version = ">=1.7", extras = ["toml"] }
4954
tox = ">=4.0"
5055
grpcio-tools = [
56+
# requires protobuf v4 or later
5157
{version = "1.49.1", python = ">=3.10,<3.12"},
5258
{version = "1.59.0", python = ">=3.12,<3.13"},
59+
# requires protobuf v5 or later
5360
{version = "1.67.0", python = ">=3.13,<3.14"},
61+
# requires protobuf v6 or later
5462
{version = "1.75.1", python = "^3.14"},
5563
]
5664
# NumPy dropped support for Python 3.8 before adding support for Python 3.12, so

packages/service/poetry.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.

packages/service/pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,25 @@ ni-python-styleguide = ">=0.4.1"
7575
# When you update the grpcio-tools version, you should update the minimum grpcio version
7676
# and regenerate gRPC stubs.
7777
grpcio-tools = [
78+
# requires protobuf v4 or later
7879
{ version = "1.49.1", python = ">=3.10,<3.12" },
7980
{ version = "1.59.0", python = ">=3.12,<3.13" },
81+
# requires protobuf v5 or later
8082
{ version = "1.67.0", python = ">=3.13,<3.14" },
83+
# requires protobuf v6 or later
8184
{ version = "1.75.1", python = "^3.14" },
8285
]
8386
pytest-cov = ">=3.0.0"
8487
pytest-mock = ">=3.0"
8588
tox = ">=4.0"
8689
mypy = ">=1.0"
8790
# mypy-protobuf 3.6 is the last version that supports protobuf v4.
88-
mypy-protobuf = ">=3.4,<3.7"
91+
mypy-protobuf = [
92+
# requires protobuf v4 or later
93+
{version = ">=3.4,<3.7", python = ">=3.10,<3.14"},
94+
# requires protobuf v6 or later
95+
{version = ">=3.4", python = "^3.14"}
96+
]
8997
types-protobuf = ">=4.21"
9098
types-setuptools = "*"
9199
types-pywin32 = ">=304"

0 commit comments

Comments
 (0)