2023-11-30 17:46:55 +01:00
|
|
|
.PHONY: petals
|
2024-04-13 02:37:32 -05:00
|
|
|
petals: protogen
|
2024-01-06 13:32:28 +01:00
|
|
|
@echo "Creating virtual environment..."
|
2024-03-07 14:37:45 +01:00
|
|
|
bash install.sh "petals.yml"
|
2024-01-06 13:32:28 +01:00
|
|
|
@echo "Virtual environment created."
|
2023-11-28 09:01:46 +01:00
|
|
|
|
2023-11-30 17:46:55 +01:00
|
|
|
.PHONY: run
|
2024-04-13 02:37:32 -05:00
|
|
|
run: protogen
|
2023-11-28 09:01:46 +01:00
|
|
|
@echo "Running petals..."
|
|
|
|
bash run.sh
|
2023-11-30 17:46:55 +01:00
|
|
|
@echo "petals run."
|
2023-12-21 02:35:15 -05:00
|
|
|
|
|
|
|
.PHONY: test
|
2024-04-13 02:37:32 -05:00
|
|
|
test: protogen
|
2023-12-21 02:35:15 -05:00
|
|
|
@echo "Testing petals..."
|
|
|
|
bash test.sh
|
|
|
|
@echo "petals tested."
|
2024-04-13 02:37:32 -05: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:
|
2024-05-10 08:08:08 -05:00
|
|
|
python3 -m grpc_tools.protoc -I../.. --python_out=. --grpc_python_out=. backend.proto
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean: protogen-clean
|
2024-05-11 11:32:46 -05:00
|
|
|
rm -rf venv __pycache__
|