-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
74 lines (52 loc) · 1.73 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
.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/nosetests -s grape/buildout
coverage: bin/coverage bin/nosetests
bin/nosetests --with-coverage --cover-html --cover-html-dir=html --cover-package=grape.buildout
bin/coverage html
pylint: bin/pylint
bin/pylint -i y grape/buildout
flake8: bin/flake8
bin/flake8 --max-complexity 12 grape/buildout
pep8: bin/pep8
bin/pep8 grape/buildout
pyflakes: bin/pyflakes
bin/pyflakes grape/buildout
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 dotpackage grape.buildout; export HOME="${OLDHOME}"
diff: bin/python
# Show the difference between the current package and the regenerated one
colordiff -c -r grape.buildout .|less -r
sloccount: bin/python
sloccount grape/buildout
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