forked from twisted/txmongo
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 600 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (27 loc) · 600 Bytes
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
# Unit-testing, docs, etc.
VIRTUALENV?=virtualenv
# VIRTUALENV?=virtualenv-2.6
EPYDOC=epydoc
TRIAL?=trial
PYFLAKES?=pyflakes
PEP8?=pep8
all: test flakes pep8
env:
rm -fr env
mkdir -p .download_cache
$(VIRTUALENV) --no-site-packages env
env/bin/pip install --download-cache=.download_cache/ Twisted epydoc pyflakes pep8
echo "\n\n>> Run 'source env/bin/activate'"
docs:
rm -fr docs
mkdir -p docs
$(EPYDOC) -v --html --output=docs txmongo
test:
$(TRIAL) tests
coverage:
$(TRIAL) --coverage tests
flakes:
$(PYFLAKES) txmongo
pep8:
$(PEP8) --ignore=E501 -r txmongo
.PHONY: env docs