-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (27 loc) · 1008 Bytes
/
Makefile
File metadata and controls
31 lines (27 loc) · 1008 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
.PHONY: test install dev clean
.ONESHELL:
test:
. .venv/bin/activate
export MOCK_TRAITER=1
./.venv/bin/python -m unittest discover
export MOCK_TRAITER=0
install:
test -d .venv || python3.11 -m venv .venv
. .venv/bin/activate
./.venv/bin/python -m pip install -U pip setuptools wheel
./.venv/bin/python -m pip install git+https://github.com/rafelafrance/spell-well.git@main#egg=spell-well
./.venv/bin/python -m pip install git+https://github.com/rafelafrance/traiter.git@v2.2.3#egg=traiter
./.venv/bin/python -m pip install .
./.venv/bin/python -m spacy download en_core_web_md
dev:
test -d .venv || python3.11 -m venv .venv
. .venv/bin/activate
./.venv/bin/python -m pip install -U pip setuptools wheel
./.venv/bin/python -m pip install -e ../../misc/spell-well
./.venv/bin/python -m pip install -e ../../traiter/traiter
./.venv/bin/python -m pip install -e .[dev]
./.venv/bin/python -m spacy download en_core_web_md
pre-commit install
clean:
rm -r .venv
find -iname "*.pyc" -delete