forked from uber/h3-py
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
34 lines (26 loc) · 749 Bytes
/
makefile
File metadata and controls
34 lines (26 loc) · 749 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
32
33
34
.PHONY: init clear rebuild purge test lint lab ipython
init: purge
git submodule update --init
virtualenv -p python3 env
env/bin/pip install .[all]
clear:
-env/bin/pip uninstall -y h3
-@rm -rf MANIFEST
-@rm -rf .pytest_cache tests/__pycache__ __pycache__ _skbuild dist .coverage
-@find . -type d -name '*.egg-info' | xargs rm -r
-@find . -type f -name '*.pyc' | xargs rm -r
-@find . -type d -name '*.ipynb_checkpoints' | xargs rm -r
rebuild: clear
env/bin/pip install .[all]
purge: clear
-@rm -rf env
test:
env/bin/pytest tests/* --cov=h3 --cov-report term-missing --durations=10
lint:
flake8 src/h3 setup.py tests
lab:
env/bin/pip install jupyterlab
env/bin/jupyter lab
ipython:
env/bin/pip install ipython
env/bin/ipython