-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (31 loc) · 1.14 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
DATE = $(shell date +"%F")
all:
docs:
(cd doc; make html)
(cd doc/html; zip -r ../pyRserve.html.zip *.html objects.inv searchindex.js _static/* )
echo
echo "Sphinx documentation has been created in doc/html/index.html"
echo "Use doc/pyRserve.html.zip for uploading the docs to pypi"
clean:
find . -name '*.pyc' -exec rm '{}' \;
find . -name '*~' -exec rm '{}' \;
find . -name '*.bak' -exec rm '{}' \;
find . -name '*.log' -exec rm '{}' \;
find . -name '.coverage' -exec rm '{}' \;
rm -rf build dist *.egg-info MANIFEST.in
upload: docs
# This will upload the current version to pypi. Credentials are stored in ~/.pypirc
python setup.py register
python setup.py sdist upload
echo "For uploading the latest documentation login to pypi and upload doc/pyRserve.html.zip"
backup: clean _backup
_backup:
DIR=`pwd`; bDIR=`basename $$DIR`; cd ..; \
tar -czf $${bDIR}_$(DATE).tgz -X $$bDIR/TAR_EXCLUDELIST $$bDIR ; \
echo "Created backup ../$${bDIR}_$(DATE).tgz"
test:
(cd pyRserve; py.test)
coverage:
pyTest=`which py.test` ; \
rm -f pyRserve/binaryRExpressions.py* ; \
(cd pyRserve; coverage run $${pyTest} ; coverage report -m)