2023-11-30 16:46:55 +00:00
|
|
|
.PHONY: petals
|
2024-04-13 07:37:32 +00:00
|
|
|
petals: protogen
|
2024-01-06 12:32:28 +00:00
|
|
|
@echo "Creating virtual environment..."
|
2024-03-07 13:37:45 +00:00
|
|
|
bash install.sh "petals.yml"
|
2024-01-06 12:32:28 +00:00
|
|
|
@echo "Virtual environment created."
|
2023-11-28 08:01:46 +00:00
|
|
|
|
2023-11-30 16:46:55 +00:00
|
|
|
.PHONY: run
|
2024-04-13 07:37:32 +00:00
|
|
|
run: protogen
|
2023-11-28 08:01:46 +00:00
|
|
|
@echo "Running petals..."
|
|
|
|
bash run.sh
|
2023-11-30 16:46:55 +00:00
|
|
|
@echo "petals run."
|
2023-12-21 07:35:15 +00:00
|
|
|
|
|
|
|
.PHONY: test
|
2024-04-13 07:37:32 +00:00
|
|
|
test: protogen
|
2023-12-21 07:35:15 +00:00
|
|
|
@echo "Testing petals..."
|
|
|
|
bash test.sh
|
|
|
|
@echo "petals tested."
|
2024-04-13 07:37:32 +00:00
|
|
|
|
|
|
|
.PHONY: protogen
|
|
|
|
protogen: backend_pb2_grpc.py backend_pb2.py
|
|
|
|
|
|
|
|
.PHONY: protogen-clean
|
|
|
|
protogen-clean:
|
|
|
|
$(RM) backend_pb2_grpc.py backend_pb2.py
|
|
|
|
|
|
|
|
backend_pb2_grpc.py backend_pb2.py:
|
|
|
|
python3 -m grpc_tools.protoc -I../.. --python_out=. --grpc_python_out=. backend.proto
|