Skip to content

Commit

Permalink
Bump to 3.4.0 (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
nipunn1313 authored Oct 20, 2022
1 parent eaaafff commit e704ea1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## Upcoming

## 3.4.0

- Mark messages as @typing.final
- Switch to use the reserved mypy-protobuf extension option numbers https://github.com/protocolbuffers/protobuf/blob/main/docs/options.md
- Bump protobuf dependency to 4.21.8
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See [Changelog](CHANGELOG.md) for recent changes.
## Requirements to run mypy-protobuf
Earlier releases might work, but aren't tested
- [protoc >= 4.21.8](https://github.com/protocolbuffers/protobuf/releases)
- [python-protobuf >= 3.20.1](https://pypi.org/project/protobuf/) - matching protoc release
- [python-protobuf >= 4.21.8](https://pypi.org/project/protobuf/) - matching protoc release
- [python >= 3.7](https://www.python.org/downloads/source/) - for running mypy-protobuf plugin.

## Requirements to run typecheckers on stubs generated by mypy-protobuf
Expand Down
2 changes: 1 addition & 1 deletion mypy_protobuf/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from google.protobuf.internal.well_known_types import WKTBASES
from . import extensions_pb2

__version__ = "3.3.0"
__version__ = "3.4.0"

# SourceCodeLocation is defined by `message Location` here
# https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/descriptor.proto
Expand Down
8 changes: 4 additions & 4 deletions run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,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.3.0"
test "$(protoc-gen-mypy --version)" = "mypy-protobuf 3.3.0"
test "$(protoc-gen-mypy_grpc -V)" = "mypy-protobuf 3.3.0"
test "$(protoc-gen-mypy_grpc --version)" = "mypy-protobuf 3.3.0"
test "$(protoc-gen-mypy -V)" = "mypy-protobuf 3.4.0"
test "$(protoc-gen-mypy --version)" = "mypy-protobuf 3.4.0"
test "$(protoc-gen-mypy_grpc -V)" = "mypy-protobuf 3.4.0"
test "$(protoc-gen-mypy_grpc --version)" = "mypy-protobuf 3.4.0"

# Run mypy on mypy-protobuf internal code for developers to catch issues
FILES="mypy_protobuf/main.py"
Expand Down

0 comments on commit e704ea1

Please sign in to comment.