-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
34 lines (28 loc) · 878 Bytes
/
Makefile
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
.PHONY: test install dev venv clean
.ONESHELL:
VENV=.venv
PY_VER=python3.11
PYTHON=./$(VENV)/bin/$(PY_VER)
PIP_INSTALL=$(PYTHON) -m pip install
BASE=pip setuptools wheel
test:
$(PYTHON) -m unittest discover
install: venv
$(PIP_INSTALL) -U $(BASE)
$(PIP_INSTALL) git+https://github.com/rafelafrance/common_utils.git@main#egg=common_utils
$(PIP_INSTALL) git+https://github.com/rafelafrance/line-align.git@main#egg=line-align
$(PIP_INSTALL) git+https://github.com/rafelafrance/spell-well.git@main#egg=spell-well
$(PIP_INSTALL) .
dev: venv
source $(VENV)/bin/activate
$(PIP_INSTALL) -U $(BASE)
$(PIP_INSTALL) -e ../../misc/common_utils
$(PIP_INSTALL) -e ../../misc/line-align
$(PIP_INSTALL) -e ../../misc/spell-well
$(PIP_INSTALL) -e .[dev]
pre-commit install
venv:
test -d $(VENV) || $(PY_VER) -m venv $(VENV)
clean:
rm -r $(VENV)
find -iname "*.pyc" -delete