-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
86 lines (62 loc) · 2.38 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Makefile generated by tooth.paste
# http://pypi.python.org/pypi/tooth.paste/2.0
.PHONY: docs build test coverage pylint flake8 pep8 pyflakes templer diff sloccount dryrelease mkrelease
ifndef VTENV_OPTS
VTENV_OPTS = "--no-site-packages"
endif
docs: bin/sphinx-build
SPHINXBUILD=../bin/sphinx-build $(MAKE) -C docs html $^
build:
virtualenv $(VTENV_OPTS) .
bin/python setup.py develop
test: bin/nosetests bin/unittest2
bin/nosetests -s src/templer/core
coverage: bin/coverage bin/nosetests
bin/nosetests --with-coverage --cover-html --cover-html-dir=html --cover-package=templer.core
bin/coverage html
pylint: bin/pylint
bin/pylint -i y src/templer/core
flake8: bin/flake8
bin/flake8 --max-complexity 12 src/templer/core
pep8: bin/pep8
bin/pep8 src/templer/core
pyflakes: bin/pyflakes
bin/pyflakes src/templer/core
templer: bin/python
# Hack to make believe templer that the current folder is the home folder
# so that it reads the local .zopeskel file with the defaults
export OLDHOME="${HOME}"; export HOME="${PWD}"; ./bin/templer package templer.core; export HOME="${OLDHOME}"
examples: bin/python
# Hack to make believe templer that the current folder is the home folder
# so that it reads the local .zopeskel file with the defaults
export OLDHOME="${HOME}"; export HOME="${PWD}"; ./bin/templer package examplepackage; export HOME="${OLDHOME}"
export OLDHOME="${HOME}"; export HOME="${PWD}"; ./bin/templer package example.dotpackage; export HOME="${OLDHOME}"
export OLDHOME="${HOME}"; export HOME="${PWD}"; ./bin/templer package example.dotdot.package; export HOME="${OLDHOME}"
diff: bin/python
# Show the difference between the current package and the regenerated one
colordiff -c -r templer.core .|less -r
sloccount: bin/python
sloccount src/templer/core
dryrelease: bin/mkrelease
bin/mkrelease --no-commit --no-tag --dry-run -d pypi
mkrelease: bin/mkrelease
bin/mkrelease --no-commit --no-tag -d pypi
bin/sphinx-build: bin/python
bin/pip install sphinx
bin/pip install coverage
bin/nosetests: bin/python
bin/pip install nose
bin/coverage: bin/python
bin/pip install coverage
bin/pylint: bin/python
bin/pip install pylint
bin/flake8: bin/python
bin/pip install flake8
bin/pyflakes: bin/python
bin/pip install pyflakes
bin/pep8: bin/python
bin/pip install pep8
bin/mkrelease: bin/python
bin/pip install jarn.mkrelease
bin/unittest2: bin/python
bin/pip install unittest2