-
Notifications
You must be signed in to change notification settings - Fork 139
/
Makefile
94 lines (76 loc) · 1.98 KB
/
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
.PHONY: deps cenv env lint test presubmit publish_test publish install
# NOTE: Some targets have a shortcuts or alias names that are listed on the same line.
# The are provided for convinience or for backward competibility. For example
# 'check-all' has the aliases 'check_all' and 'ca'.
# Install dependencies for apio development
#
# Usage:
# make deps
deps:
python -m pip install --upgrade pip
pip install flit black flake8 pylint tox pytest semantic-version pyserial importlib-metadata
# Create the virtual-environment and update dependencies
#
# Usage:
# make cenv
cenv:
python3 -m venv venv
python3 -m venv venv --upgrade
# Usage
# make env
env:
@echo "For entering the virtual-environment just type:"
@echo ". venv/bin/activate"
# Lint only, no tests.
#
# Usage:
# make lint
# make l
lint l:
python -m tox -e lint
# Offline tests only, no lint, single python version, skipping online tests.
# This is a partial but fast test.
#
# Usage:
# make test
# make t
test t:
python -m tox --skip-missing-interpreters false -e py312 -- --offline
# Tests and lint, single python version, all tests including online..
# This is a thorough but slow test and sufficient for testign before
# commiting changes run this before submitting code.
#
# Usage:
# make check
# make c
check c:
python -m tox --skip-missing-interpreters false -e lint,py312
# Tests and lint, multiple python versions.
# Should be be run automatically on github.
#
# Usage:
# make check-all
# make check_all // deprecated, to be deleted.
# make ca
check-all check_all ca:
python -m tox --skip-missing-interpreters false
# Publish to testPypi
#
# Usage:
# make publish-test
# make publish_test // deprecated, to be deleted.
publish-test publish_test:
flit publish --repository testpypi
# Publish to PyPi
#
# Usage:
# make publish
publish:
python -m flit publish
## Install the tool locally
#
# Usage:
# make instll
install:
flit build
flit install