symconf/Makefile

40 lines
837 B
Makefile
Raw Normal View History

2024-04-19 22:50:31 +00:00
PYTHON="<python-binary>"
BASH=/usr/bin/bash
UNAME=$(shell uname)
ifeq ($(UNAME), Darwin)
PYTHON=python3
endif
## ------------------ docs ------------------ ##
2024-07-05 11:11:54 +00:00
docs-publish:
scp -r docs/_build/html/* hetz-cloud:/var/www/doc.olog.io/symconf/
2024-04-19 22:50:31 +00:00
docs-serve:
cd docs/_build/html && python -m http.server 9091
docs-build:
sphinx-apidoc --module-first --separate -o docs/_autoref/ symconf
2024-04-19 22:50:31 +00:00
make -C docs/ html
docs-clean:
make -C docs/ clean
rm -rf docs/_autoref
rm -rf docs/_autosummary
2024-04-19 22:50:31 +00:00
## ------------------------------------------ ##
2024-05-18 22:35:10 +00:00
2024-07-05 11:11:54 +00:00
## ----------------- tests ------------------ ##
test:
pytest --pyargs tests -v
2024-04-19 22:50:31 +00:00
## ------------------------------------------ ##
2024-07-05 11:11:54 +00:00
## ----------------- build ------------------ ##
build:
python -m build
2024-05-18 22:35:10 +00:00
2024-07-05 11:11:54 +00:00
publish:
python -m twine upload dist/*
2024-04-19 22:50:31 +00:00
## ------------------------------------------ ##