-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 522 Bytes
/
Makefile
File metadata and controls
32 lines (24 loc) · 522 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
# Makefile for managing the project
# include .env
# export
SRC_DIR := src
UV_RUN_CMD=uv run --directory $(SRC_DIR)
.PHONY: all sync run test clean
all: clean sync run
# Set up environment and build project
sync:
@uv sync --no-cache
# Freeze environment to requirements.txt
freeze: sync
@uv pip freeze > requirements.txt
# Run the app
run: sync
@${UV_RUN_CMD} app.py
# Test the app
test: sync
@echo "No tests available currently."
@exit 0
# Clean environment and remove .venv
clean:
@uv clean
@rm -rf .venv