-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
48 lines (29 loc) · 713 Bytes
/
Copy pathmakefile
File metadata and controls
48 lines (29 loc) · 713 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
41
42
43
44
45
46
47
48
ROOT := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
VENV := $(ROOT).venv
PY := $(VENV)/bin/python
UV := $(VENV)/bin/uv
HF := $(VENV)/bin/hf
STAMP := $(VENV)/installed
UC := $(VENV)/bin/uvicorn
$(PY):
python3 -m venv $(VENV)
$(UV): $(PY)
$(PY) -m pip install uv
lock: $(UV)
cd $(ROOT) && $(UV) lock
$(STAMP): $(ROOT)uv.lock $(UV)
cd $(ROOT) && $(UV) sync
touch $(STAMP)
install: $(STAMP)
demo: $(STAMP)
cd $(ROOT) && $(UC) demo_app.app:app --host 0.0.0.0 --port 8000
cloudflare-tunnel:
cloudflared tunnel --url http://localhost:8000
build-samples: $(STAMP)
$(PY) build_samples.py
samples-eda: $(STAMP)
$(PY) samples_eda.py
hf-login:
$(HF) auth login
hf-logout:
$(HF) auth logout