-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
41 lines (30 loc) · 974 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
35
36
37
38
39
40
41
setup: venv
. .venv/bin/activate && python -m pip install --upgrade pip
. .venv/bin/activate && pip install -r requirements.txt
setup-win: venv
. .venv/Scripts/activate && python -m pip install --upgrade pip
. .venv/Scripts/activate && pip install -r requirements.txt
venv:
test -d .venv || python -m venv .venv
clean: clean-pyc
rm -rf .venv
clean-pyc:
find . -name "*.pyc" -exec rm -f {} +
find . -name "*.pyo" -exec rm -f {} +
find . -name "*~" -exec rm -f {} +
find . -name "__pycache__" -exec rm -fr {} +
tests:
. .venv/bin/activate && pytest --cov=src --cov-report=term-missing
make clean-pyc > /dev/null
tests-win:
. .venv/Scripts/activate && pytest --cov=src --cov-report=term-missing
make clean-pyc > /dev/null
# entrypoints
main:
. .venv/bin/activate && python src/main.py
main-win:
. .venv/Scripts/activate && python src/main.py
executable:
./binding_cpp_root/build/bin/binding
executable-win:
binding_cpp_root/build/bin/binding.exe