This commit is contained in:
Eden Kirin
2023-03-18 21:30:15 +01:00
commit ce3eff47ea
14 changed files with 312 additions and 0 deletions

18
src/funnel/Makefile Normal file
View File

@ -0,0 +1,18 @@
PROTO_DIR=../protos
STUBS_DIR=./stubs
PROTO_FILENAME=serve_hours.proto
run:
@source env/bin/activate && \
python main.py
proto:
@source env/bin/activate && \
python \
-m grpc_tools.protoc \
-I$(PROTO_DIR) \
--python_out=$(STUBS_DIR) \
--pyi_out=$(STUBS_DIR) \
--grpc_python_out=$(STUBS_DIR) \
$(PROTO_DIR)/$(PROTO_FILENAME)
@sed -i -E 's/^(import\s[a-zA-Z0-9_]+_pb2)/from . \1/g' $(STUBS_DIR)/*_grpc.py