-
-
Notifications
You must be signed in to change notification settings - Fork 108
/
Makefile
39 lines (31 loc) · 707 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
PYTHON ?= python3
COVERAGE ?= coverage
build:
$(PYTHON) -m build
install: clean
$(PYTHON) -m pip install --editable .
clean:
$(PYTHON) setup.py clean
rm -rf build
rm -f smartcard/scard/_scard*.so
pypi: clean
# files generated by swig
rm -f smartcard/scard/scard.py
rm -f smartcard/scard/scard_wrap.c
# files generated by sphinx
rm -rf smartcard/doc/_build
# files generated by pydoctor
rm -rf smartcard/doc/html
rm -rf dist
$(PYTHON) -m build
python3 -m twine upload dist/*
test: install
pytest
coverage:
$(COVERAGE) erase
$(COVERAGE) run -m unittest discover
$(COVERAGE) report
$(COVERAGE) html
ChangeLog.git:
git log --stat --decorate=short > $@
.PHONY: clean build pypi test