-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
44 lines (34 loc) · 1.02 KB
/
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
42
43
44
.PHONY: env lab clean purge kill docs-clean docs-build
env:
python -m venv env
env/bin/pip install --upgrade pip wheel setuptools
env/bin/pip install -r requirements.txt
env/bin/pip install -r requirements-docs.txt
env/bin/pip install -e .
make test
lab:
env/bin/jupyter lab
clean: docs-clean
find . -type f -name '*.html' | xargs rm -r
find . -type f -name '*.pyc' | xargs rm -r
find . -type d -name '*.ipynb_checkpoints' | xargs rm -r
find . -type d -name '*.egg-info' | xargs rm -r
find . -type d -name '__pycache__' | xargs rm -r
find . -type d -name '.pytest_cache' | xargs rm -r
find . -type f -name '.DS_Store' | xargs rm -r
purge: clean
-@rm -rf env
test:
env/bin/pytest
env/bin/pytest --doctest-modules src
github: purge
python -m venv env
env/bin/pip install --upgrade pip wheel
env/bin/pip install -r requirements.txt
env/bin/pip install git+https://github.com/ajfriend/pydeck-h3
docs-build:
env/bin/jupyter-book build docs/
docs-clean:
rm -rf docs/_build/
docs-open:
open docs/_build/html/index.html