From 36377736bfbd15564ac220d767b7ca083f9afedc Mon Sep 17 00:00:00 2001 From: Brad Keryan Date: Mon, 8 Dec 2025 19:16:24 -0600 Subject: [PATCH 1/4] fix(deps): Rework mypy-protobuf versioning so Renovate won't update the version we use for codegen --- pyproject.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9dd1782e..62fb3a72 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,13 +68,21 @@ nitypes = {version=">=1.0.0"} [tool.poetry.group.codegen.dependencies] Mako = "^1.2" grpcio-tools = [ + # requires protobuf v4 or later { version = "1.49.1", python = ">=3.9,<3.12" }, { version = "1.59.0", python = ">=3.12,<3.13" }, + # requires protobuf v5 or later { version = "1.67.0", python = ">=3.13,<3.14" }, + # requires protobuf v6 or later { version = "1.75.1", python = "^3.14" }, ] # mypy-protobuf 3.6 is the last version that supports protobuf v4. -mypy-protobuf = ">=3.4,<3.7" +mypy-protobuf = [ + # requires protobuf v4 or later + {version = ">=3.4,<3.7", python = ">=3.10,<3.14"}, + # requires protobuf v6 or later + {version = ">=3.4", python = "^3.14"} +] [tool.poetry.group.docs] optional = true From 7ffb0a840daee7b4408da620fddaeb46e3b250e3 Mon Sep 17 00:00:00 2001 From: Brad Keryan Date: Mon, 8 Dec 2025 19:16:51 -0600 Subject: [PATCH 2/4] chore: Update poetry.lock --- poetry.lock | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/poetry.lock b/poetry.lock index dce1a824..9bea3877 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2389,6 +2389,7 @@ description = "Generate mypy stub files from protobuf specs" optional = false python-versions = ">=3.8" groups = ["codegen"] +markers = "python_version >= \"3.10\"" files = [ {file = "mypy-protobuf-3.6.0.tar.gz", hash = "sha256:02f242eb3409f66889f2b1a3aa58356ec4d909cdd0f93115622e9e70366eca3c"}, {file = "mypy_protobuf-3.6.0-py3-none-any.whl", hash = "sha256:56176e4d569070e7350ea620262478b49b7efceba4103d468448f1d21492fd6c"}, @@ -3994,6 +3995,7 @@ files = [ {file = "types_protobuf-6.32.1.20251105-py3-none-any.whl", hash = "sha256:a15109d38f7cfefd2539ef86d3f93a6a41c7cad53924f8aa1a51eaddbb72a660"}, {file = "types_protobuf-6.32.1.20251105.tar.gz", hash = "sha256:641002611ff87dd9fedc38a39a29cacb9907ae5ce61489b53e99ca2074bef764"}, ] +markers = {codegen = "python_version >= \"3.10\""} [[package]] name = "types-requests" @@ -4121,4 +4123,4 @@ grpc = ["grpcio", "ni-grpcdevice-v1-proto", "ni-protobuf-types", "protobuf"] [metadata] lock-version = "2.1" python-versions = ">=3.9,<4.0" -content-hash = "3597a298003d0ad183a815aabcdea5868848992210fbbf13e80842388ddd7005" +content-hash = "6dfcec1ea4f8f4381d2aeb6089350f85bb26cec627ad1307509b7d3f484db08d" From b350dd931f5cf1a72752c5981ca8acf22936481f Mon Sep 17 00:00:00 2001 From: Brad Keryan Date: Tue, 9 Dec 2025 12:35:24 -0600 Subject: [PATCH 3/4] fix: Specify mypy-protobuf version for Python 3.9 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 62fb3a72..14c03b32 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -79,7 +79,7 @@ grpcio-tools = [ # mypy-protobuf 3.6 is the last version that supports protobuf v4. mypy-protobuf = [ # requires protobuf v4 or later - {version = ">=3.4,<3.7", python = ">=3.10,<3.14"}, + {version = ">=3.4,<3.7", python = ">=3.9,<3.14"}, # requires protobuf v6 or later {version = ">=3.4", python = "^3.14"} ] From feb4df774d6e85e5125138b426ad2043f27a0ded Mon Sep 17 00:00:00 2001 From: Brad Keryan Date: Tue, 9 Dec 2025 12:35:43 -0600 Subject: [PATCH 4/4] chore: Update poetry.lock --- poetry.lock | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/poetry.lock b/poetry.lock index 9bea3877..a072728f 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2389,7 +2389,6 @@ description = "Generate mypy stub files from protobuf specs" optional = false python-versions = ">=3.8" groups = ["codegen"] -markers = "python_version >= \"3.10\"" files = [ {file = "mypy-protobuf-3.6.0.tar.gz", hash = "sha256:02f242eb3409f66889f2b1a3aa58356ec4d909cdd0f93115622e9e70366eca3c"}, {file = "mypy_protobuf-3.6.0-py3-none-any.whl", hash = "sha256:56176e4d569070e7350ea620262478b49b7efceba4103d468448f1d21492fd6c"}, @@ -3995,7 +3994,6 @@ files = [ {file = "types_protobuf-6.32.1.20251105-py3-none-any.whl", hash = "sha256:a15109d38f7cfefd2539ef86d3f93a6a41c7cad53924f8aa1a51eaddbb72a660"}, {file = "types_protobuf-6.32.1.20251105.tar.gz", hash = "sha256:641002611ff87dd9fedc38a39a29cacb9907ae5ce61489b53e99ca2074bef764"}, ] -markers = {codegen = "python_version >= \"3.10\""} [[package]] name = "types-requests" @@ -4123,4 +4121,4 @@ grpc = ["grpcio", "ni-grpcdevice-v1-proto", "ni-protobuf-types", "protobuf"] [metadata] lock-version = "2.1" python-versions = ">=3.9,<4.0" -content-hash = "6dfcec1ea4f8f4381d2aeb6089350f85bb26cec627ad1307509b7d3f484db08d" +content-hash = "f7d53512dc12a25658f1a2bb319e6f2c4fe1c2c037b19f7b6de53646f9f72ed8"