From d3ec95ece02b416b29a8029eeceb0c0420452766 Mon Sep 17 00:00:00 2001 From: Aidan Jensen Date: Wed, 17 Dec 2025 20:11:35 -0800 Subject: [PATCH 1/2] prep 3.8.0 release Signed-off-by: Aidan Jensen --- CHANGELOG.md | 2 +- mypy_protobuf/main.py | 2 +- run_test.sh | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3886341e0..41fd82126 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## Upcoming +## 3.8.0 - Drop support for `py_generic_services` as it was removed from the protobuf compiler starting in version 6.30 - https://protobuf.dev/news/2024-10-02/#rpc-service-interfaces diff --git a/mypy_protobuf/main.py b/mypy_protobuf/main.py index 3700e90e5..07b59fc41 100644 --- a/mypy_protobuf/main.py +++ b/mypy_protobuf/main.py @@ -27,7 +27,7 @@ from . import extensions_pb2 -__version__ = "3.7.0" +__version__ = "3.8.0" # SourceCodeLocation is defined by `message Location` here # https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/descriptor.proto diff --git a/run_test.sh b/run_test.sh index 190aa587b..d7b0c2d2a 100755 --- a/run_test.sh +++ b/run_test.sh @@ -93,10 +93,10 @@ MYPY_PROTOBUF_VENV=venv_$PY_VER_MYPY_PROTOBUF source "$MYPY_PROTOBUF_VENV"/bin/activate # Confirm version number - test "$(protoc-gen-mypy -V)" = "mypy-protobuf 3.7.0" - test "$(protoc-gen-mypy --version)" = "mypy-protobuf 3.7.0" - test "$(protoc-gen-mypy_grpc -V)" = "mypy-protobuf 3.7.0" - test "$(protoc-gen-mypy_grpc --version)" = "mypy-protobuf 3.7.0" + test "$(protoc-gen-mypy -V)" = "mypy-protobuf 3.8.0" + test "$(protoc-gen-mypy --version)" = "mypy-protobuf 3.8.0" + test "$(protoc-gen-mypy_grpc -V)" = "mypy-protobuf 3.8.0" + test "$(protoc-gen-mypy_grpc --version)" = "mypy-protobuf 3.8.0" # Run mypy on mypy-protobuf internal code for developers to catch issues FILES="mypy_protobuf/main.py" From b7bcdf4cbc142b50a97cf3f891101f3ccd8a63be Mon Sep 17 00:00:00 2001 From: Aidan Jensen Date: Thu, 18 Dec 2025 21:17:38 -0800 Subject: [PATCH 2/2] bump to 4.0.0 Signed-off-by: Aidan Jensen --- CHANGELOG.md | 4 ++-- mypy_protobuf/main.py | 2 +- run_test.sh | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41fd82126..2fa2ff079 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ -## 3.8.0 +## 4.0.0 -- Drop support for `py_generic_services` as it was removed from the protobuf compiler starting in version 6.30 +- BREAKING: Drop support for `py_generic_services` as it was removed from the protobuf compiler starting in version 6.30 - https://protobuf.dev/news/2024-10-02/#rpc-service-interfaces - Drop testing support for protobuf <6.32 because they don't support editions - With some more work this could be added back in a testing refactor diff --git a/mypy_protobuf/main.py b/mypy_protobuf/main.py index 07b59fc41..2a6997d8c 100644 --- a/mypy_protobuf/main.py +++ b/mypy_protobuf/main.py @@ -27,7 +27,7 @@ from . import extensions_pb2 -__version__ = "3.8.0" +__version__ = "4.0.0" # SourceCodeLocation is defined by `message Location` here # https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/descriptor.proto diff --git a/run_test.sh b/run_test.sh index d7b0c2d2a..a138c3127 100755 --- a/run_test.sh +++ b/run_test.sh @@ -93,10 +93,10 @@ MYPY_PROTOBUF_VENV=venv_$PY_VER_MYPY_PROTOBUF source "$MYPY_PROTOBUF_VENV"/bin/activate # Confirm version number - test "$(protoc-gen-mypy -V)" = "mypy-protobuf 3.8.0" - test "$(protoc-gen-mypy --version)" = "mypy-protobuf 3.8.0" - test "$(protoc-gen-mypy_grpc -V)" = "mypy-protobuf 3.8.0" - test "$(protoc-gen-mypy_grpc --version)" = "mypy-protobuf 3.8.0" + test "$(protoc-gen-mypy -V)" = "mypy-protobuf 4.0.0" + test "$(protoc-gen-mypy --version)" = "mypy-protobuf 4.0.0" + test "$(protoc-gen-mypy_grpc -V)" = "mypy-protobuf 4.0.0" + test "$(protoc-gen-mypy_grpc --version)" = "mypy-protobuf 4.0.0" # Run mypy on mypy-protobuf internal code for developers to catch issues FILES="mypy_protobuf/main.py"