-
Notifications
You must be signed in to change notification settings - Fork 137
/
Makefile
55 lines (36 loc) · 1.1 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
.PHONY: deps cenv env lint test presubmit publish_test publish install
# Install dependencies for apio development
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
cenv:
python3 -m venv venv
python3 -m venv venv --upgrade
env:
@echo "For entering the virtual-environment just type:"
@echo ". venv/bin/activate"
# Lint only, no tests.
lint:
python -m tox -e lint
# Tests only, no lint, single python version.
test:
python -m tox --skip-missing-interpreters false -e py312
# Tests and lint, single python version.
# Run this before submitting code.
check:
python -m tox --skip-missing-interpreters false -e lint,py312
# Tests and lint, multiple python versions.
# Should be be run automatically on github.
check_all:
python -m tox --skip-missing-interpreters false
# Publish to testPypi
publish_test:
flit publish --repository testpypi
# Publish to PyPi
publish:
python -m flit publish
## Install the tool locally
install:
flit build
flit install