-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
70 lines (44 loc) · 1.19 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
PIP=pip3
.PHONY: docs # necessary so it doesn't look for 'docs/makefile html'
init:
pip install pip -U
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
poetry self:update
poetry install
poetry run pre-commit install
clean:
rm -rf dist
rm -rf pip-wheel-metadata
rm -rf docs
rm -rf .pytest_cache
test:
poetry run python -m pytest
lint:
poetry run pylint -E pydent
pullversion:
poetry run keats version up
docs: | pullversion
@echo "Updating docs"
# copy README.md to README.rst format for Sphinx documentation
# we can comment this out if we do not want to include the README.md in the sphinx documentation
poetry run keats changelog up
cp .keats/changelog.md docsrc/developer/changelog.md
rm -rf docs
cd docsrc && poetry run make html
find docs -type f -exec chmod 444 {} \;
@echo "\033[95m\n\nBuild successful! View the docs homepage at docs/html/index.html.\n\033[0m"
touch docs/.nojekyll
open ./docs/index.html
format:
poetry run upver
poetry run black benchlingapi tests
lock:
poetry run upver
poetry update
build:
poetry run upver
poetry build
release:
sh scripts/release.sh
klocs:
find . -name '*.py' | xargs wc -l