mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 16:27:08 +08:00
Update proto stubs with latest mypy-protobuf 2.6 (#5753)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user