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:
17
Makefile
17
Makefile
@@ -3,6 +3,10 @@ PY = python3
|
|||||||
VENV = venv
|
VENV = venv
|
||||||
BIN=$(VENV)/bin
|
BIN=$(VENV)/bin
|
||||||
|
|
||||||
|
DOCS_SRC = docs
|
||||||
|
DOCS_OUT = $(DOCS_SRC)/_build
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(OS), Windows_NT)
|
ifeq ($(OS), Windows_NT)
|
||||||
BIN=$(VENV)/Scripts
|
BIN=$(VENV)/Scripts
|
||||||
PY=python
|
PY=python
|
||||||
@@ -18,25 +22,30 @@ $(VENV): requirements.txt requirements-dev.txt setup.py
|
|||||||
$(BIN)/pip install -e .
|
$(BIN)/pip install -e .
|
||||||
touch $(VENV)
|
touch $(VENV)
|
||||||
|
|
||||||
|
.PHONY: test
|
||||||
test: $(VENV)
|
test: $(VENV)
|
||||||
$(BIN)/pytest
|
$(BIN)/pytest
|
||||||
.PHONY: test
|
|
||||||
|
|
||||||
|
.PHONY: lint
|
||||||
lint: $(VENV)
|
lint: $(VENV)
|
||||||
$(BIN)/flake8
|
$(BIN)/flake8
|
||||||
.PHONY: lint
|
|
||||||
|
|
||||||
|
.PHONY: release
|
||||||
release: $(VENV)
|
release: $(VENV)
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
$(BIN)/python setup.py sdist bdist_wheel
|
$(BIN)/python setup.py sdist bdist_wheel
|
||||||
$(BIN)/twine upload dist/*
|
$(BIN)/twine upload dist/*
|
||||||
.PHONY: release
|
|
||||||
|
|
||||||
|
.PHONY: docs
|
||||||
|
docs: $(VENV)
|
||||||
|
$(BIN)/sphinx-build $(DOCS_SRC) $(DOCS_OUT)
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -rf build dist *.egg-info
|
rm -rf build dist *.egg-info
|
||||||
rm -rf $(VENV)
|
rm -rf $(VENV)
|
||||||
|
rm -rf $(DOCS_OUT)
|
||||||
find . -type f -name *.pyc -delete
|
find . -type f -name *.pyc -delete
|
||||||
find . -type d -name __pycache__ -delete
|
find . -type d -name __pycache__ -delete
|
||||||
# coverage
|
# coverage
|
||||||
rm -rf htmlcov .coverage
|
rm -rf htmlcov .coverage
|
||||||
.PHONY: clean
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ API
|
|||||||
===
|
===
|
||||||
|
|
||||||
.. autosummary::
|
.. autosummary::
|
||||||
:toctree: DIRNAME
|
:toctree: api
|
||||||
|
|
||||||
blag.__init__
|
blag.__init__
|
||||||
blag.version
|
blag.version
|
||||||
|
|||||||
Reference in New Issue
Block a user