Skip to content

Commit

Permalink
py: Let the python bindings have a copy of the protos
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Sep 30, 2024
1 parent 1654a3e commit 8f603e1
Show file tree
Hide file tree
Showing 5 changed files with 1,158 additions and 29 deletions.
7 changes: 5 additions & 2 deletions libs/gl-client-py/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ GENALL += ${PYPROTOS}
${PYPROTOS}: pygrpc

pygrpc: ${PROTOSRC}
python -m grpc_tools.protoc ${PYPROTOC_OPTS} glclient/scheduler.proto
python -m grpc_tools.protoc ${PYPROTOC_OPTS} glclient/greenlight.proto
cp ${PYDIR}/../proto/glclient/scheduler.proto ${PYDIR}/glclient/
cp ${PYDIR}/../proto/glclient/greenlight.proto ${PYDIR}/glclient/
cd ${PYDIR}; poetry install
cd ${PYDIR}; poetry run python -m grpc_tools.protoc ${PYPROTOC_OPTS} glclient/scheduler.proto
cd ${PYDIR}; poetry run python -m grpc_tools.protoc ${PYPROTOC_OPTS} glclient/greenlight.proto

check-py:
cd ${PYDIR}; mypy glclient
Expand Down
Loading

0 comments on commit 8f603e1

Please sign in to comment.