-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (31 loc) · 862 Bytes
/
Makefile
File metadata and controls
40 lines (31 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.PHONY: setup install test clean run_macos ngrok
# Default shell
SHELL := /bin/bash
# Venv config
VENV_DIR = .venv
PYTHON = $(VENV_DIR)/bin/python3.12
PIP = $(VENV_DIR)/bin/pip
# Targets
setup: clean
python3.12 -m venv $(VENV_DIR)
install: setup
$(PYTHON) -m pip install "pip<25.0"
$(PIP) install -r requirements.txt
$(PIP) install --no-deps "grc_odycy_joint_sm @ https://huggingface.co/chcaa/grc_odycy_joint_sm/resolve/main/grc_odycy_joint_sm-any-py3-none-any.whl"
@echo "Running tests..."
@$(MAKE) test
test:
PYTHONPATH=. $(VENV_DIR)/bin/pytest
run_macos:
@if [ ! -d "$(VENV_DIR)" ]; then \
echo "Virtual environment not found. Installing dependencies..."; \
$(MAKE) install; \
fi
cd macos && swift build && swift run
rebuild:
rm -rf macos/.build
@$(MAKE) run_macos
clean:
rm -rf $(VENV_DIR)
ngrok:
ngrok http http://localhost:8000