-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (43 loc) · 1.11 KB
/
Copy pathMakefile
File metadata and controls
58 lines (43 loc) · 1.11 KB
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
# SPDX-FileCopyrightText: 2025 Alexandre Gomes Gaigalas <alganet@gmail.com>
#
# SPDX-License-Identifier: ISC
.PHONY: all format lint test coverage clean publish pip reuse .venv docs-serve docs-build
all: format lint coverage build
pip:
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
reuse:
reuse annotate \
--copyright "Alexandre Gomes Gaigalas <alganet@gmail.com>" \
--license ISC \
--recursive .
.venv:
python -m venv .venv
. .venv/bin/activate && make pip
format: reuse
python -m black apywire tests
python -m isort apywire tests
lint:
python -m reuse lint
python -m flake8 apywire tests
python -m mypy apywire tests
test:
python -m pytest -q
coverage:
rm -f apywire/*.so apywire/wiring.c
python -m pytest --cov
clean:
find . -name __pycache__ -type d -exec rm -rf {} +
rm -f *.pyc *.pyo *.pyd .coverage
rm -f apywire/*.so apywire/wiring.c
rm -rf .mypy_cache .pytest_cache *.egg-info dist build
build:
python setup.py build_ext --inplace
dist:
python -m build
publish:
python -m twine upload dist/*
docs-serve:
python -m mkdocs serve
docs-build:
python -m mkdocs build