forked from kascodeo/python-opc-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (45 loc) · 921 Bytes
/
Makefile
File metadata and controls
58 lines (45 loc) · 921 Bytes
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
# install GNU make to run make
MAKE = make
help:
@echo "make <OPTIONS>"
@echo OPTIONS:
@echo " help"
@echo " test"
@echo " mypy"
@echo " docclean"
@echo " docapidoc"
@echo " dochtml"
@echo " clean"
@echo " setup"
@echo " build"
@echo " testupload"
@echo " upload"
.PHONY = help, test, docclean, docapidoc, dochtml, clean, setup, build, testupload, upload, tox
test:
poetry run pytest --cov-report term-missing --cov-report html --cov-branch --cov src
mypy:
poetry run mypy src
docclean:
$(MAKE) -C docs clean
docapidoc:
sphinx-apidoc -o ./docs/source -e ./src/opc
$(MAKE) dochtml
dochtml:
$(MAKE) docclean
$(MAKE) -C docs html
clean:
rm -rf "dist"
rm -rf .tox
setup:
pip install -e .[docs,tests,dists]
pip uninstall -y python-opc-lite
build:
$(MAKE) clean
python -m build
testupload:
twine upload -r testpypi dist/*
upload:
twine upload dist/*
tox:
$(MAKE) clean
tox