Skip to content

Updating the version in proto packages and modified the protofiles #151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions connector/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,13 @@ def find_version(*paths):

# package dependencies
install_requires = [
'paramiko >= 1.15.1',
'lxml >= 3.3.0',
'ncclient >= 0.6.6',
'grpcio',
'protobuf'
'paramiko >= 3.5.1',
'lxml >= 4.9.4, <5.4.0',
'ncclient >= 0.6.19',
'grpcio >= 1.71.0',
'grpcio-tools >= 1.71.0',
'googleapis-common-protos >= 1.70.0',
'protobuf >= 6.30.2'
],

# any additional groups of dependencies.
Expand Down
142 changes: 52 additions & 90 deletions connector/src/yang/connector/proto/gnmi_ext_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions connector/src/yang/connector/proto/gnmi_ext_pb2_grpc.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
import warnings


GRPC_GENERATED_VERSION = '1.67.1'
GRPC_VERSION = grpc.__version__
_version_not_supported = False

try:
from grpc._utilities import first_version_is_lower
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
except ImportError:
_version_not_supported = True

if _version_not_supported:
raise RuntimeError(
f'The grpc package installed is at version {GRPC_VERSION},'
+ f' but the generated code in gnmi_ext_pb2_grpc.py depends on'
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
)
Loading