Skip to content

Commit c0c9042

Browse files
committed
Simplify make file even mor
1 parent a3b20e4 commit c0c9042

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

Makefile

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,32 @@
1-
.PHONY: test install dev venv clean activate base
1+
.PHONY: test install dev clean
22
.ONESHELL:
33

44
test: activate
55
export MOCK_TRAITER=1
66
./.venv/bin/python -m unittest discover
77
export MOCK_TRAITER=0
88

9-
install: venv activate base
9+
install:
10+
test -d .venv || python3.11 -m venv .venv
11+
. .venv/bin/activate
12+
./.venv/bin/python -m pip install -U pip setuptools wheel
13+
./.venv/bin/python -m pip install -e ../../misc/spell-well
1014
./.venv/bin/python -m pip install git+https://github.com/rafelafrance/spell-well.git@main#egg=spell-well
11-
./.venv/bin/python -m pip install git+https://github.com/rafelafrance/traiter.git@master#egg=traiter
15+
./.venv/bin/python -m pip install git+https://github.com/rafelafrance/traiter.git@v2.2.3#egg=traiter
1216
./.venv/bin/python -m pip install .
1317
./.venv/bin/python -m spacy download en_core_web_md
1418

15-
dev: venv activate base
19+
dev:
20+
test -d .venv || python3.11 -m venv .venv
21+
. .venv/bin/activate
22+
./.venv/bin/python -m pip install -U pip setuptools wheel
23+
./.venv/bin/python -m pip install -e ../../misc/spell-well
1624
./.venv/bin/python -m pip install -e ../../misc/spell-well
1725
./.venv/bin/python -m pip install -e ../../traiter/traiter
1826
./.venv/bin/python -m pip install -e .[dev]
1927
./.venv/bin/python -m spacy download en_core_web_md
2028
pre-commit install
2129

22-
activate:
23-
. .venv/bin/activate
24-
25-
base:
26-
./.venv/bin/python -m pip install -U pip setuptools wheel
27-
28-
venv:
29-
test -d .venv || python3.11 -m venv .venv
30-
3130
clean:
3231
rm -r .venv
3332
find -iname "*.pyc" -delete

0 commit comments

Comments
 (0)