-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
66 lines (46 loc) · 1.58 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.ONESHELL:
SHELL := /bin/bash
exp:
nbdev_clean
nbdev_export
help: ## Show this help
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
sync: ## Propagates any change in the modules (.py files) to the notebooks that created them
nbdev_update
deploy: docs ## Push local docs to gh-pages branch
nbdev_ghp_deploy
preview: ## Live preview quarto docs with hot reloading.
nbdev_sidebar
nbdev_export
IN_TEST=1 && nbdev_quarto --preview
docs: .FORCE ## Build quarto docs and put them into folder specified in `doc_path` in settings.ini
nbdev_export
nbdev_quarto
prepare: ## Export notebooks to python modules, test code and clean notebooks.
nbdev_export
nbdev_test
nbdev_clean
test: ## Test notebooks
nbdev_test
release_all: pypi release_conda ## Release python package on pypi and conda. Also bumps version number automatically.
nbdev_bump_version
nbdev_export
release_pypi: pypi ## Release python package on pypi. Also bumps version number automatically.
nbdev_export
nbdev_bump_version
release_conda:
fastrelease_conda_package
pypi: dist
twine upload --repository pypi dist/*
dist: clean
python setup.py sdist bdist_wheel
clean:
rm -rf dist
install: install_quarto ## Install quarto and the latest version of the local python pckage as an editable install
pip install -e ".[dev]"
install_py: .FORCE
nbdev_export
pip install -e ".[dev]"
install_quarto: .FORCE ## Install the latest version of quarto for Mac and Linux. Go to https://quarto.org/docs/get-started/ for Windows.
./install_quarto.sh
.FORCE: