-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 743 Bytes
/
Makefile
File metadata and controls
30 lines (21 loc) · 743 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
PYTHON?=python3
PIP?=pip3
VENV?=venv
SHELL := /bin/bash
.PHONY: docs build venv VENV
venv: $(VENV)/bin/activate
$(VENV)/bin/activate: setup.py
$(PIP) install --upgrade pip virtualenv
@test -d $(VENV) || $(PYTHON) -m virtualenv --clear $(VENV)
${VENV}/bin/python -m pip install --upgrade pip
${VENV}/bin/python -m pip install -e .[dev]
build: venv
${VENV}/bin/python setup.py sdist bdist_wheel
test: venv
source ${VENV}/bin/activate && pytest tests/
coverage: venv
source ${VENV}/bin/activate && pytest --cov=dtintegrations tests/
lint: venv
source ${VENV}/bin/activate && mypy dtintegrations/ && flake8 dtintegrations/
clean:
rm -rf build/ dist/ pip-wheel-metadata/ *.egg-info .pytest_cache/ .mypy_cache/ $(VENV) coverage.xml