Update proto stubs with latest mypy-protobuf 2.6 (#5753)

This commit is contained in:
Nipunn Koorapati
2021-07-10 17:10:39 -07:00
committed by GitHub
parent 276c225cd9
commit 42eec29eed
15 changed files with 1187 additions and 1262 deletions

View File

@@ -9,12 +9,13 @@
# followed by committing the changes to typeshed
#
# Update these two variables when rerunning script
PROTOBUF_VERSION=3.14.0
MYPY_PROTOBUF_VERSION=v1.24
PROTOBUF_VERSION=3.17.3
MYPY_PROTOBUF_VERSION=v2.6
set -ex
if uname -a | grep Darwin; then
# brew install coreutils wget
PLAT=osx
else
PLAT=linux
@@ -43,10 +44,10 @@ PYTHON_PROTOBUF_DIR=protobuf-$PROTOBUF_VERSION
VENV=venv
python3 -m venv $VENV
source $VENV/bin/activate
pip install -r requirements-tests-py3.txt # for black and isort
pip install -r $REPO_ROOT/requirements-tests-py3.txt # for black and isort
# Install mypy-protobuf
pip install git+https://github.com/dropbox/mypy-protobuf@${MYPY_PROTOBUF_VERSION}#subdirectory=python
pip install git+https://github.com/dropbox/mypy-protobuf@${MYPY_PROTOBUF_VERSION}
# Remove existing pyi
find $REPO_ROOT/stubs/protobuf/ -name "*_pb2.pyi" -delete