-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (39 loc) · 914 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
PYTHON:=$(VIRTUAL_ENV)/bin/python
PIP:=$(VIRTUAL_ENV)/bin/pip
.PHONY: build
build:
$(VIRTUAL_ENV)/bin/pip install wheel
$(PYTHON) setup.py sdist bdist_wheel
.PHONY: typehint
typehint:
@./tests/checklist/typehint.sh
.PHONY: testdeps
testdeps:
$(PIP) install -e .[tests]
.PHONY: unit
unit:
pytest -sv tests/unit/ $(ARGS)
.PHONY: functional
functional:
pytest -sv tests/functional/ $(ARGS)
.PHONY: test
test: unit functional
.PHONY: lint
lint:
@./tests/checklist/linting.sh
.PHONY: checklist
checklist: testdeps lint typehint test
.PHONY: clean
clean:
rm -fr .coverage .cache/ build/ .mypy_cache/ *.comp dist
find . -type f -name "*.pyc" -delete
find . -type d -name "__pycache__" -exec rm -fr {} +
.PHONY: doc
doc:
$(PIP) install --dev -e .[docs]
$(MAKE) -C doc/ html
@xdg-open doc/_build/html/index.html
# use; make release VERSION=<version>
.PHONY: release
release:
git tag -s $(VERSION)