-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (28 loc) · 839 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
livehtml:
poetry run $(MAKE) -C docs livehtml
html:
poetry run $(MAKE) -C docs html
doc: html
install:
poetry install --with dev --with docs --extras opt
python3 -m pip install --user .[opt]
build:
poetry build
test:
rm -f .coverage coverage.xml
find docs/source/example/ -type f -name '*.ipynb' | xargs poetry run jupyter nbconvert --to script
poetry run pytest
commit:
-git add .
-git commit
push: commit
git push
pull: commit
git pull
clean:
rm -r docs/build docs/source/_autosummary
rm -r .eggs .pytest_cache *.egg-info
find docs/source/example/ -type f -name '*.ipynb' | xargs jupyter nbconvert --clear-output --inplace
release: push html
git tag $(shell git describe --tags --abbrev=0 | perl -lpe 'BEGIN { sub inc { my ($$num) = @_; ++$$num } } s/(\d+\.\d+\.)(\d+)/$$1 . (inc($$2))/eg')
git push --tags