/
Makefile
33 lines (23 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
dist: ## generate distribution package
python3 setup.py sdist bdist_wheel
upload: ## upload distribution package to PyPi
python3 -m twine upload dist/*
upgrade: ## upgrade packages necessary for testing, building, packaging and uploading to PyPi
python3 -m pip install --upgrade pip setuptools wheel tqdm twine pytest mkdocs mkdocs
build-docs: ## build docs into the local 'site' folder
mkdocs build
serve-docs: ## serve docs for local viewing
mkdocs serve
publish-docs: ## build and publish docs to Github Pages
mkdocs gh-deploy
.PHONY: install-requirements
install-requirements: ## install requirements
pip3 install -r requirements.txt
.PHONY: test
test: ## runs all tests
cd test && python3 -m unittest
clean: ## cleans the project directory
rm -rf dist/ build/ knora.egg-info/ .pytest_cache/ site/
help: ## this help
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | sort
.PHONY: dist upload upgrade build-docs serve-docs publish-docs clean help