I have made modifications to the import statement in fed/proxy/barries.py to point to the correct file based on the version.
The unit tests can now be passed using pytest -s -v tests/test_fed_get.py.
The files fed_pb2_via_protobuf4.py and fed_pb2_grpc_via_protobuf4.py are generated under the protobuf4 version.
The specific versions of protobuf4 and grpcio-tools are protobuf==4.23.4, grpcio==1.56.0, grpcio-tools==1.56.0.
To execute the command, please run cd fed/grpc && python -m grpc_tools.protoc -I ./ --python_out=./ --grpc_python_out=./ ./fed.proto. I have also modified the names of the generated files from fed_pb2.py and fed_pb2_grpc.py to fed_pb2_via_protobuf4.py and fed_pb2_grpc_via_protobuf4.py.
fed/proxy/barries.py
to point to the correct file based on the version.pytest -s -v tests/test_fed_get.py
.fed_pb2_via_protobuf4.py
andfed_pb2_grpc_via_protobuf4.py
are generated under the protobuf4 version.protobuf==4.23.4, grpcio==1.56.0, grpcio-tools==1.56.0
.cd fed/grpc && python -m grpc_tools.protoc -I ./ --python_out=./ --grpc_python_out=./ ./fed.proto
. I have also modified the names of the generated files fromfed_pb2.py
andfed_pb2_grpc.py
tofed_pb2_via_protobuf4.py
andfed_pb2_grpc_via_protobuf4.py
.Close #102