-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
29 lines (23 loc) · 874 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
build:
python -m build --sdist --wheel
docker:
docker build . -t flaport/meow:latest
nbrun:
find . -name "*.ipynb" -not -path "*/.ipynb_checkpoints/*" | xargs parallel -j `nproc --all` papermill {} {} -k python3 :::
dockerpush:
docker push flaport/meow:latest
.PHONY: docs
docs:
sphinx-apidoc --force --no-toc --no-headings --implicit-namespaces --module-first --maxdepth 1 --output-dir docs/source meow
cd docs && make html
run:
find examples -name "*.ipynb" | grep -v ipynb_checkpoints | xargs -I {} papermill -k meow {} {}
clean:
find . -name "dist" | xargs rm -rf
find . -name "build" | xargs rm -rf
find . -name "builds" | xargs rm -rf
find . -name "__pycache__" | xargs rm -rf
find . -name "*.so" | xargs rm -rf
find . -name ".ipynb_checkpoints" | xargs rm -rf
find . -name ".pytest_cache" | xargs rm -rf
find . -name ".mypy_cache" | xargs rm -rf