Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 988b1be

Browse files
committed
Separate proto gen
1 parent 89c30fd commit 988b1be

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dev-requirements.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ sphinx-autodoc-typehints~=1.25
1010
pytest==7.1.3
1111
pytest-cov~=4.1
1212
readme-renderer~=24.0
13-
# This version of grpcio-tools ships with protoc 3.19.4 which appears to be compatible with
14-
# both protobuf 3.19.x and 4.x (see https://github.com/protocolbuffers/protobuf/issues/11123).
15-
# Bump this version with caution to preserve compatibility with protobuf 3.
16-
# https://github.com/open-telemetry/opentelemetry-python/blob/main/opentelemetry-proto/pyproject.toml#L28
17-
grpcio-tools==1.48.1
18-
mypy-protobuf~=3.0.0
1913
# temporary fix. we should update the jinja, flask deps
2014
# See https://github.com/pallets/markupsafe/issues/282
2115
# breaking change introduced in markupsafe causes jinja, flask to break

gen-requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# This version of grpcio-tools ships with protoc 3.19.4 which appears to be compatible with
2+
# both protobuf 3.19.x and 4.x (see https://github.com/protocolbuffers/protobuf/issues/11123).
3+
# Bump this version with caution to preserve compatibility with protobuf 3.
4+
# https://github.com/open-telemetry/opentelemetry-python/blob/main/opentelemetry-proto/pyproject.toml#L28
5+
grpcio-tools==1.48.1
6+
mypy-protobuf~=3.0.0

scripts/proto_codegen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ echo "Creating temporary virtualenv at $venv_dir using $(python3 --version)"
3232
python3 -m venv $venv_dir
3333
source $venv_dir/bin/activate
3434
python -m pip install \
35-
-c $repo_root/dev-requirements.txt \
35+
-c $repo_root/gen-requirements.txt \
3636
grpcio-tools mypy-protobuf
3737
echo 'python -m grpc_tools.protoc --version'
3838
python -m grpc_tools.protoc --version

0 commit comments

Comments
 (0)