Bump protobuf to 3.19.2 (#6879)

This commit is contained in:
Nipunn Koorapati
2022-01-10 01:03:41 -08:00
committed by GitHub
parent 96c9abb058
commit fc4ba3ac64
7 changed files with 12 additions and 40 deletions

View File

@@ -11,7 +11,7 @@ set -ex -o pipefail
# followed by committing the changes to typeshed
#
# Update these two variables when rerunning script
PROTOBUF_VERSION=3.18.1
PROTOBUF_VERSION=3.19.2
MYPY_PROTOBUF_VERSION=v3.0.0
if uname -a | grep Darwin; then
@@ -74,4 +74,5 @@ protoc_install/bin/protoc --proto_path="$PYTHON_PROTOBUF_DIR/src" --mypy_out="$R
isort "$REPO_ROOT/stubs/protobuf"
black "$REPO_ROOT/stubs/protobuf"
sed -i="" "s/mypy-protobuf [^\"]*/mypy-protobuf ${MYPY_PROTOBUF_VERSION}/" "$REPO_ROOT/stubs/protobuf/METADATA.toml"
sed -i "" "s/mypy-protobuf [^\"]*/mypy-protobuf ${MYPY_PROTOBUF_VERSION}/" "$REPO_ROOT/stubs/protobuf/METADATA.toml"
sed -i "" "s/version = .*$/version = \"$(echo ${PROTOBUF_VERSION} | cut -d. -f1-2)\.\*\"/" "$REPO_ROOT/stubs/protobuf/METADATA.toml"