-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (21 loc) · 707 Bytes
/
Makefile
File metadata and controls
28 lines (21 loc) · 707 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
VENV := .venv
UV := $(shell which uv)
ensure-uv:
ifndef UV
# install uv: https://docs.astral.sh/uv/getting-started/installation/#installation-methods
curl -LsSf https://astral.sh/uv/install.sh | sh
else
@echo "uv already installed at $(UV)"
endif
venv: ensure-uv
uv venv
activate:
. $(VENV)/bin/activate || source $(VENV)/bin/activate
install: venv activate
uv pip install -e .
requirements.txt: pyproject.toml ensure-uv
uv pip compile pyproject.toml -o requirements.txt
build-lichess: ensure-uv
uv run pyinstaller moonfish/main.py --name moonfish --onefile --hidden-import chess --add-data "opening_book:opening_book"
clean:
rm -rf .venv __pycache__ .mypy_cache dist build *.egg-info *.spec