-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
50 lines (35 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
45
46
47
48
49
50
PY ?= python3
.PHONY: test
test:
$(PY) -m pytest tests/
pre-commit run --all-files
.PHONY: test-ci
test-ci:
$(PY) -m pytest -vv tests/
pre-commit run --all-files
.PHONY: coverage
coverage:
$(PY) -m pytest -vv tests/ --cov cptk/ --cov-report xml --cov-report term
.PHONY: install
install:
$(PY) -m pip install --upgrade pip
$(PY) -m pip install .
.PHONY: install-dev
install-dev:
$(PY) -m pip install --upgrade pip
$(PY) -m pip install -r requirements-dev.txt
$(PY) -m pip install -e .
pre-commit install
pre-commit run --all-files
.PHONY: install-ci
install-ci:
$(PY) -m pip install --upgrade pip
$(PY) -m pip install -r requirements-dev.txt
$(PY) -m pip install .
.PHONY: build
build: test
rm -r dist build
$(PY) setup.py sdist bdist_wheel
.PHONY: upload
upload: build
$(PY) -m twine upload dist/*