forked from hudora/huBarcode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (23 loc) · 831 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
default: check
build:
python setup.py build
upload: build
python setup.py sdist
publish: upload
# remove development tag
python setup.py build sdist upload
install: build
sudo python setup.py install
check:
# PEP8 scheitert and den QR-code Tabellen.
pyflakes hubarcode/ean13/ hubarcode/datamatrix/ hubarcode/code128/ hubarcode/qrcode/*.py examples/
pep8 -r --ignore=E501 hubarcode/ean13/ hubarcode/datamatrix/ hubarcode/code128/ hubarcode/qrcode/*.py examples/
-pylint --max-line-length=110 -d E1101 hubarcode/ean13/ hubarcode/datamatrix/ hubarcode/code128/ examples/ examples/
testenv:
virtualenv testenv
testenv/bin/pip install coverage
testenv/bin/pip install PIL
test:
PYTHONPATH=.:./hubarcode python examples/code128.py TESTTEXT
PYTHONPATH=.:./hubarcode python test/test_coverage.py
.PHONY: test testenv