-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
70 lines (53 loc) · 1.21 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
#fake Makefile for pw19, to support the common
# ./configure;make;make install
PYTHON = python
#build: Setup setup.py
build: setup.py
$(PYTHON) setup.py build
#install: Setup setup.py
install: setup.py
$(PYTHON) setup.py install
#Setup:
# $(PYTHON) configure.py
test check tests:
$(PYTHON) run_tests.py
testall:
python2.5 setup.py test
python2.6 setup.py test
python3.1 setup.py test
make checkdocs
#docs: install
# cd docs/utils
# $(PYTHON) makedocs.py
clean:
rm -rf build dist MANIFEST .coverage
rm -f pw19/*~
rm -rf bin develop-eggs eggs parts .installed.cfg pw19.egg-info
find . -name *.pyc -exec rm {} \;
find . -name *.swp -exec rm {} \;
$(PYTHON) setup.py clean
# push changes
push:
#bzr push lp:pw19
svn commit
# commit changes
commit:
#bzr commit
svn commit
#upload to pypi
upload:
make clean
#if you have your gpg key set up... sign your release.
#$(PYTHON) setup.py sdist upload --sign --identity="Your Name <[email protected]>"
$(PYTHON) setup.py sdist upload
sdist:
make clean
make testall
$(PYTHON) setup.py sdist
checkdocs:
$(PYTHON) setup.py checkdocs -setuptools
showdocs:
$(PYTHON) setup.py showdocs -setuptools
coverage:
coverage run run_tests.py
coverage report -m