-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (38 loc) · 1.26 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
# Simple Makefile for some common tasks. This will get
# fleshed out with time to make things easier on developer
# and tester types.
.PHONY: test dist upload
clean:
find . -name "*.pyc" |xargs rm || true
rm -r dist || true
rm -r build || true
rm -r tiddlyweb.egg-info || true
rm *.bundle || true
rm -r *-bundle* || true
cleanagain:
find . -name "*.pyc" |xargs rm || true
rm -r dist || true
rm -r build || true
rm -r tiddlyweb.egg-info || true
rm *.bundle || true
rm -r *-bundle* || true
test:
py.test -x test
makebundle: clean dist
# work around errors in pip when bundling a tarball by instead
# bundling the thing at pypy
#pip bundle tiddlyweb-`date +%F`.bundle dist/tiddlyweb*.tar.gz
pip bundle tiddlyweb-`python setup.py --version`.bundle tiddlyweb
uploadbundle:
scp -P 8022 *.bundle [email protected]:public_html/tiddlyweb.peermore.com/dist
bundle: clean dist makebundle uploadbundle
dist: test
python setup.py sdist
upload: clean test cleanagain pypi peermore
pypi:
python setup.py sdist upload
py2app: clean
python setup.py py2app
peermore:
scp -P 8022 dist/tiddlyweb-*.gz [email protected]:public_html/tiddlyweb.peermore.com/dist
scp -P 8022 CHANGES [email protected]:public_html/tiddlyweb.peermore.com/dist/CHANGES.tiddlyweb