Debian Codegraph @

Makefile

raw
1 # Some simple testing tasks (sorry, UNIX only).
2
3 SRC = aiosignal tests setup.py
4
5 all: test
6
7 .install-deps:
8 pip install -r requirements/dev.txt
9 @touch .install-deps
10
11 lint:
12 # CI env-var is set by GitHub actions
13 ifndef CI
14 pre-commit run --all-files
15 endif
16 mypy aiosignal
17
18 .develop: .install-deps $(shell find aiosignal -type f)
19 # pip install -e .
20 @touch .develop
21
22 test: .develop
23 @pytest -q
24
25 vtest: .develop
26 @pytest -s -v
27
28 cov cover coverage:
29 tox
30
31 cov-dev: .develop
32 @pytest -c pytest.ci.ini --cov-report=html
33 @echo "open file://`pwd`/htmlcov/index.html"
34
35 cov-ci-run: .develop
36 @echo "Regular run"
37 @pytest -c pytest.ci.ini --cov-report=html
38
39 cov-dev-full: cov-ci-run
40 @echo "open file://`pwd`/htmlcov/index.html"
41
42 clean:
43 @rm -rf `find . -name __pycache__`
44 @rm -f `find . -type f -name '*.py[co]' `
45 @rm -f `find . -type f -name '*~' `
46 @rm -f `find . -type f -name '.*~' `
47 @rm -f `find . -type f -name '@*' `
48 @rm -f `find . -type f -name '#*#' `
49 @rm -f `find . -type f -name '*.orig' `
50 @rm -f `find . -type f -name '*.rej' `
51 @rm -f .coverage
52 @rm -rf htmlcov
53 @rm -rf build
54 @rm -rf cover
55 @make -C docs clean
56 @python setup.py clean
57 @rm -rf .tox
58 @rm -f .develop
59 @rm -f .flake
60 @rm -f .install-deps
61 @rm -rf aiosignal.egg-info
62
63 doc:
64 @make -C docs html SPHINXOPTS="-W -E"
65 @echo "open file://`pwd`/docs/_build/html/index.html"
66
67 doc-spelling:
68 @make -C docs spelling SPHINXOPTS="-W -E"
69
70 install:
71 @pip install -U 'pip'
72 @pip install -Ur requirements/dev.txt
73 @pre-commit install
74
75 install-dev: .develop
76
77 .PHONY: all build flake test vtest cov clean doc mypy