mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Bump protobuf to 3.19.2 (#6879)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user