-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 699 Bytes
/
Makefile
File metadata and controls
31 lines (23 loc) · 699 Bytes
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
PYTHON?=python3
PIP?=pip3
VENV?=venv
SHELL := /bin/bash
.PHONY: build venv VENV
venv: $(VENV)/bin/activate
$(VENV)/bin/activate: setup.cfg
$(PIP) install --upgrade pip virtualenv
@test -d $(VENV) || $(PYTHON) -m virtualenv --clear $(VENV)
${VENV}/bin/python -m pip install -e .[dev]
build: venv
${VENV}/bin/python -m build
test: venv
source ${VENV}/bin/activate && pytest tests/
lint: venv
source ${VENV}/bin/activate && mypy bunshi/ --config-file ./mypy.ini && flake8 bunshi/
clean:
rm -rf build/ dist/ pip-wheel-metadata/ *.egg-info
find . -name '__pycache__' -exec rm --force --recursive {} +
rm -rf .pytest_cache/ .mypy_cache/
rm -rf $(VENV)
rm -f coverage.xml
rm -f dt.spec