forked from hudora/pyShipping
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (40 loc) · 1.52 KB
/
Makefile
File metadata and controls
53 lines (40 loc) · 1.52 KB
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
# setting the PATH seems only to work in GNUmake not in BSDmake
PATH := ./testenv/bin:$(PATH)
default: binpack_3dbpp.so
pyshipping/binpack_3dbpp.c: pyshipping/binpack_3dbpp.pyx
cython pyshipping/binpack_3dbpp.pyx
binpack_3dbpp.so: pyshipping/binpack_3dbpp.c
python setup.py build_ext --inplace
check:
find pyshipping -name '*.py' | xargs /usr/local/hudorakit/bin/hd_pep8
/usr/local/hudorakit/bin/hd_pylint -f parseable pyshipping | tee pylint.out
grep "our code has been rated at" < pylint.out|cut -d '/' -f 1|cut -d ' ' -f 7 >> .pylint.score
build:
python setup.py build
test:
PYTHONPATH=. python pyshipping/__init__.py # find import errors
PYTHONPATH=. python pyshipping/shipment.py
PYTHONPATH=. python pyshipping/package.py
PYTHONPATH=. python pyshipping/fortras/test.py
PYTHONPATH=. python pyshipping/carriers/dpd/georoute_test.py
dependencies:
virtualenv testenv
pip -q install -E testenv -r requirements.txt
statistics:
sloccount --wide --details pyshipping | tee sloccount.sc
upload: build doc
python setup.py sdist upload
doc: build
rm -Rf html
mkdir -p html
mkdir -p html/fortras
mkdir -p html/carriers
sh -c '(cd html; pydoc -w ../pyshipping/*.py)'
sh -c '(cd html/fortras; pydoc -w ../../pyshipping/*.py)'
sh -c '(cd html/carriers; pydoc -w ../../pyshipping/*.py)'
install: build
sudo python setup.py install
clean:
rm -Rf testenv build dist html test.db pyShipping.egg-info pylint.out sloccount.sc pip-log.txt
find . -name '*.pyc' -or -name '*.pyo' -delete
.PHONY: test build clean check upload doc install