1
0
mirror of https://github.com/enpaul/keyosk.git synced 2025-09-18 21:51:57 +00:00

Update toxfile with better optimized settings and task dist

Fix pycache cleanup in makefile
Update makefile to use tox doc env for building documentation
This commit is contained in:
2020-03-08 23:53:52 -04:00
parent ce3e2e34ab
commit ce20868b49
2 changed files with 18 additions and 20 deletions

View File

@@ -23,12 +23,13 @@ clean-tox:
rm -rf ./.mypy_cache
rm -rf ./.tox
rm -f .coverage
find ./tests -true -type d -name __pycache__ -prune -exec rm -rf {} \;
clean-py:
rm -rf ./dist
rm -rf ./build
rm -rf ./*/__pycache__
rm -rf ./*.egg-info
find ./keyosk -true -type d -name __pycache__ -prune -exec rm -rf {} \;
clean-docs:
rm -rf $(DOC_BUILDDIR)
@@ -47,6 +48,4 @@ build: clean-py tox; ## Test and build python distributions
poetry build
docs: clean-docs ## Generate sphinx documentation, provide `DOC_FORMAT` to override default format of "html"
poetry run sphinx-apidoc -o "${DOC_SOURCEDIR}" "${DOC_PROJECT}"
rm $(DOC_SOURCEDIR)/modules.rst
poetry run sphinx-build -M $(DOC_FORMAT) "$(DOC_SOURCEDIR)" "$(DOC_BUILDDIR)" $(DOC_OPTIONS) $(0)
poetry run tox -e docs