-
Notifications
You must be signed in to change notification settings - Fork 49
/
Makefile
37 lines (25 loc) · 937 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
NOTEBOOK_TESTS=$(addprefix examples/, \
examples-dplyr-funcs.ipynb case-iris-select.ipynb examples-postgres.ipynb examples-varspec.ipynb \
examples-siu.ipynb \
)
AUTODOC_SCRIPT=docs/scripts/generate_autodoc.py
AUTODOC_PAGES=docs/api_extra/vector.rst docs/api_extra/forcats.rst
SPHINX_BUILDARGS=-j auto
.PHONY: docs
test:
py.test --nbval $(NOTEBOOK_TESTS)
pytest siuba/
test-travis:
pytest $(PYTEST_FLAGS) siuba/
examples/%.ipynb:
jupyter nbconvert --to notebook --inplace --execute $@
jupytext --sync $@
docs/api_extra/%.rst: siuba/dply/%.py $(AUTODOC_SCRIPT)
python3 $(AUTODOC_SCRIPT) . $< > $@
docs-watch: $(AUTODOC_PAGES)
cd docs && sphinx-autobuild . ./_build/html $(SPHINX_BUILDARGS)
docs-build: $(AUTODOC_PAGES)
cd docs && sphinx-build . ./_build/html $(SPHINX_BUILDARGS)
github_traffic:
# keep github traffic, since it is only held for 2 weeks
github_get_traffic -c gh_traffic/config.ini -o gh_traffic