forked from pyauth/pyotp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (23 loc) · 585 Bytes
/
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
SHELL=/bin/bash -e
test_deps:
pip install coverage flake8 mypy sphinx wheel
lint: test_deps
flake8 src
typecheck: test_deps
mypy --strict --no-warn-unused-ignores src
test: lint typecheck
coverage run --branch --include 'src/*' -m unittest discover -s test -v
init_docs: test_deps
cd docs; sphinx-quickstart
docs: test_deps
sphinx-build docs docs/html
build:
pip install build
python -m build
install: clean build
pip install --upgrade dist/*.whl
clean:
-rm -rf build dist
-rm -rf *.egg-info
.PHONY: lint test test_deps docs build install clean
include common.mk