1
0
mirror of https://github.com/venthur/blag.git synced 2025-11-25 20:52:43 +00:00

included docs into makefile

This commit is contained in:
Bastian Venthur
2021-03-22 09:30:14 +01:00
parent 3c264966c0
commit 7240b0a28b
3 changed files with 15 additions and 6 deletions

View File

@@ -3,6 +3,10 @@ PY = python3
VENV = venv
BIN=$(VENV)/bin
DOCS_SRC = docs
DOCS_OUT = $(DOCS_SRC)/_build
ifeq ($(OS), Windows_NT)
BIN=$(VENV)/Scripts
PY=python
@@ -18,25 +22,30 @@ $(VENV): requirements.txt requirements-dev.txt setup.py
$(BIN)/pip install -e .
touch $(VENV)
.PHONY: test
test: $(VENV)
$(BIN)/pytest
.PHONY: test
.PHONY: lint
lint: $(VENV)
$(BIN)/flake8
.PHONY: lint
.PHONY: release
release: $(VENV)
rm -rf dist
$(BIN)/python setup.py sdist bdist_wheel
$(BIN)/twine upload dist/*
.PHONY: release
.PHONY: docs
docs: $(VENV)
$(BIN)/sphinx-build $(DOCS_SRC) $(DOCS_OUT)
.PHONY: clean
clean:
rm -rf build dist *.egg-info
rm -rf $(VENV)
rm -rf $(DOCS_OUT)
find . -type f -name *.pyc -delete
find . -type d -name __pycache__ -delete
# coverage
rm -rf htmlcov .coverage
.PHONY: clean

View File

@@ -2,7 +2,7 @@ API
===
.. autosummary::
:toctree: DIRNAME
:toctree: api
blag.__init__
blag.version

View File

@@ -6,4 +6,4 @@ addopts =
--cov-report=term-missing:skip-covered
[flake8]
exclude = venv,build
exclude = venv,build,docs