40 lines
837 B
Makefile
40 lines
837 B
Makefile
PYTHON="<python-binary>"
|
|
BASH=/usr/bin/bash
|
|
UNAME=$(shell uname)
|
|
|
|
ifeq ($(UNAME), Darwin)
|
|
PYTHON=python3
|
|
endif
|
|
|
|
|
|
## ------------------ docs ------------------ ##
|
|
docs-publish:
|
|
scp -r docs/_build/html/* hetz-cloud:/var/www/doc.olog.io/symconf/
|
|
|
|
docs-serve:
|
|
cd docs/_build/html && python -m http.server 9091
|
|
|
|
docs-build:
|
|
sphinx-apidoc --module-first --separate -o docs/_autoref/ symconf
|
|
make -C docs/ html
|
|
|
|
docs-clean:
|
|
make -C docs/ clean
|
|
rm -rf docs/_autoref
|
|
rm -rf docs/_autosummary
|
|
## ------------------------------------------ ##
|
|
|
|
|
|
## ----------------- tests ------------------ ##
|
|
test:
|
|
pytest --pyargs tests -v
|
|
## ------------------------------------------ ##
|
|
|
|
## ----------------- build ------------------ ##
|
|
build:
|
|
python -m build
|
|
|
|
publish:
|
|
python -m twine upload dist/*
|
|
## ------------------------------------------ ##
|