This repository has been archived by the owner on Jan 3, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
54 lines (43 loc) · 1.79 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
# setting the PATH seems only to work in GNUmake not in BSDmake
PATH := ./pythonenv/bin:$(PATH)
default: check test examples
check:
pep8 -r --ignore=E501,E111 huTools/
-pyflakes $$(find huTools -name '*.py' | grep -v 'http\/__init' | grep -v 'http\/_httplib2')
-pylint -iy --max-line-length=110 --ignore=_httplib2 huTools
test: dependencies
PYTHONPATH=. ./pythonenv/bin/python huTools/aggregation.py
PYTHONPATH=. ./pythonenv/bin/python huTools/http/test.py
PYTHONPATH=. ./pythonenv/bin/python huTools/NetStringIO.py
PYTHONPATH=. ./pythonenv/bin/python huTools/calendar/formats.py
PYTHONPATH=. ./pythonenv/bin/python huTools/calendar/tools.py
PYTHONPATH=. ./pythonenv/bin/python huTools/calendar/workdays.py
PYTHONPATH=. ./pythonenv/bin/python huTools/checksumming.py
PYTHONPATH=. ./pythonenv/bin/python huTools/humessaging.py
PYTHONPATH=. ./pythonenv/bin/python huTools/luids.py
PYTHONPATH=. ./pythonenv/bin/python huTools/obfuscation.py
PYTHONPATH=. ./pythonenv/bin/python huTools/postmark.py
PYTHONPATH=. ./pythonenv/bin/python huTools/structured.py
PYTHONPATH=. ./pythonenv/bin/python huTools/unicode.py
upload:
rm -Rf build dist
python setup.py sdist
VERSION=`ls dist/ | perl -npe 's/.*-(\d+\..*?).tar.gz/$1/' | sort | tail -n 1`
python setup.py sdist upload
git tag v$(VERSION)
git push origin --tags
git commit -m "v$(VERSION) published on PyPi" -a
git push origin
build:
python setup.py build
dependencies: pythonenv/bin/python
pythonenv/bin/python:
pip -q install -r requirements.txt
doc: examples
paver gh_pages_build gh_pages_update -m "documentation fixup"
install: build
sudo python setup.py install
clean:
rm -Rf testenv pythonenv build dist html test.db pylint.out sloccount.sc pip-log.txt
find . -name '*.pyc' -delete
.PHONY: build clean install upload check doc docs test