0
|
1 #fake Makefile for mamba, to support the common
|
|
2 # ./configure;make;make install
|
|
3
|
|
4 PYTHON = python
|
|
5
|
|
6 #build: Setup setup.py
|
|
7 build: setup.py
|
|
8 $(PYTHON) setup.py build
|
|
9
|
|
10 #install: Setup setup.py
|
|
11 install: setup.py
|
|
12 $(PYTHON) setup.py install
|
|
13
|
|
14 #Setup:
|
|
15 # $(PYTHON) configure.py
|
|
16
|
|
17 test check tests:
|
|
18 $(PYTHON) run_tests.py
|
|
19
|
|
20 testall:
|
|
21 python2.5 setup.py test
|
|
22 python2.6 setup.py test
|
|
23 python3.1 setup.py test
|
|
24 make checkdocs
|
|
25
|
|
26 #docs: install
|
|
27 # cd docs/utils
|
|
28 # $(PYTHON) makedocs.py
|
|
29
|
|
30 clean:
|
|
31 rm -rf build dist MANIFEST .coverage
|
|
32 rm -f mamba/*~
|
|
33 rm -rf bin develop-eggs eggs parts .installed.cfg mamba.egg-info
|
|
34 find . -name *.pyc -exec rm {} \;
|
|
35 find . -name *.swp -exec rm {} \;
|
|
36 $(PYTHON) setup.py clean
|
|
37
|
|
38 # push changes
|
|
39 push:
|
|
40 #bzr push lp:mamba
|
|
41 svn commit
|
|
42
|
|
43 # commit changes
|
|
44 commit:
|
|
45 #bzr commit
|
|
46 svn commit
|
|
47
|
|
48 #upload to pypi
|
|
49 upload:
|
|
50 make clean
|
|
51 #if you have your gpg key set up... sign your release.
|
|
52 #$(PYTHON) setup.py sdist upload --sign --identity="Your Name <youremail@example.com>"
|
|
53 $(PYTHON) setup.py sdist upload
|
|
54
|
|
55 sdist:
|
|
56 make clean
|
|
57 make testall
|
|
58 $(PYTHON) setup.py sdist
|
|
59
|
|
60 checkdocs:
|
|
61 $(PYTHON) setup.py checkdocs -setuptools
|
|
62
|
|
63 showdocs:
|
|
64 $(PYTHON) setup.py showdocs -setuptools
|
|
65
|
|
66 coverage:
|
|
67 coverage run run_tests.py
|
|
68 coverage report -m
|
|
69
|
|
70
|