Skip to content

Commit

Permalink
feat(grpc-asyncio): bump grpcio version
Browse files Browse the repository at this point in the history
Bump grpcio to latest version (1.66.1) to include both type hint
generation and asyncio support.

Also remove explicit dependency on protobuf and use it indirect
from grpcio to avoid version mismatch warnings.
  • Loading branch information
joekickass committed Sep 13, 2024
1 parent c30c04a commit 0d6eb80
Show file tree
Hide file tree
Showing 5 changed files with 119 additions and 162 deletions.
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.8
3.10
3 changes: 1 addition & 2 deletions python/remotivelabs-broker/docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ function generate_protobuf_files() {
--proto_path=$PROTO_IN \
--python_out=$PROTO_STUBS_OUT \
--grpc_python_out=$PROTO_STUBS_OUT \
--mypy_out=$PROTO_STUBS_OUT \
--mypy_grpc_out=$PROTO_STUBS_OUT \
--pyi_out=$PROTO_STUBS_OUT \
$PROTO_IN/*.proto

# Note: protobuf compiler does not support generating relative or custom absolute imports for python. Use a script to do this manually...
Expand Down
1 change: 0 additions & 1 deletion python/remotivelabs-broker/misc/fix_import_statements.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

# You can manually specify the number of replacements by changing the 4th argument
for file in files:
print(f"fixing imports in file {file}")
with open(file, encoding="utf-8") as stream:
contents = stream.read()
result = re.sub(REGEX_STRING, SUBSTITUTE_STRING, contents, count=0, flags=re.MULTILINE)
Expand Down
Loading

0 comments on commit 0d6eb80

Please sign in to comment.