cgi.parse_qs is deprecated in favor of urlparse.parse_qs in python 2.6,
[jelmer/dulwich-libgit2.git] / Makefile
1 PYTHON = python
2 SETUP = $(PYTHON) setup.py
3 PYDOCTOR ?= pydoctor
4 TESTRUNNER = $(shell which nosetests)
5
6 all: build
7
8 doc:: pydoctor
9
10 pydoctor::
11         $(PYDOCTOR) --make-html -c dulwich.cfg
12
13 build::
14         $(SETUP) build
15         $(SETUP) build_ext -i
16
17 install::
18         $(SETUP) install
19
20 check:: build
21         PYTHONPATH=. $(PYTHON) $(TESTRUNNER) dulwich
22         which git > /dev/null && PYTHONPATH=. $(PYTHON) $(TESTRUNNER) -i compat
23
24 check-noextensions:: clean
25         PYTHONPATH=. $(PYTHON) $(TESTRUNNER) dulwich
26
27 check-compat:: build
28         PYTHONPATH=. $(PYTHON) $(TESTRUNNER) -i compat
29
30 clean::
31         $(SETUP) clean --all
32         rm -f dulwich/*.so
33
34 coverage:: build
35         PYTHONPATH=. $(PYTHON) $(TESTRUNNER) --cover-package=dulwich --with-coverage --cover-erase --cover-inclusive dulwich
36
37 coverage-annotate: coverage
38         python-coverage -a -o /usr