-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
44 lines (34 loc) · 832 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
PYTHON := python3
.PHONY: build
build: clean
@$(PYTHON) -m tox -e build
ls -lh dist/*
.PHONY: check
check:
@$(PYTHON) -m tox -e lint
.PHONY: clean
clean:
$(PYTHON) -m tox -e clean
.PHONY: fmt
fmt:
@$(PYTHON) -m tox -e fmt
.PHONY: release
release:
$(PYTHON) -m tox -e release
.PHONY: setup-ci
setup-ci:
$(PYTHON) -m pip install -q --disable-pip-version-check --upgrade pip
$(PYTHON) -m pip install -q --disable-pip-version-check --upgrade tox
.PHONY: setup-dev
setup-dev: setup-ci
$(PYTHON) -m pip install -q --disable-pip-version-check --upgrade -e .[test]
$(PYTHON) -m pip check
.PHONY: examples
examples:
cd examples; \
pytest .; \
pytest . --md-report-exclude-outcomes failed error xfailed -v ; \
pytest . --md-report-flavor gfm --md-report-output gfm_report.md
.PHONY: test
test:
$(PYTHON) -m tox -e py