Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
61 lines (42 sloc) 1.03 KB
PYTHON = python
PYFLAKES = pyflakes
PEP8 = pep8
SETUP = $(PYTHON) setup.py
PYDOCTOR ?= pydoctor
TESTRUNNER ?= unittest
RUNTEST = PYTHONHASHSEED=random PYTHONPATH=.:$(PYTHONPATH) $(PYTHON) -m $(TESTRUNNER) $(TEST_OPTIONS)
DESTDIR=/
all: build
doc:: pydoctor
doc:: sphinx
sphinx::
$(MAKE) -C docs html
pydoctor::
$(PYDOCTOR) --make-html -c dulwich.cfg
build::
$(SETUP) build
$(SETUP) build_ext -i
install::
$(SETUP) install --root="$(DESTDIR)"
check:: build
$(RUNTEST) dulwich.tests.test_suite
check-tutorial:: build
$(RUNTEST) dulwich.tests.tutorial_test_suite
check-nocompat:: build
$(RUNTEST) dulwich.tests.nocompat_test_suite
check-compat:: build
$(RUNTEST) dulwich.tests.compat_test_suite
check-pypy:: clean
$(MAKE) check-noextensions PYTHON=pypy
check-noextensions:: clean
$(RUNTEST) dulwich.tests.test_suite
check-all: check check-pypy check-noextensions
clean::
$(SETUP) clean --all
rm -f dulwich/*.so
flakes:
$(PYFLAKES) dulwich
pep8:
$(PEP8) dulwich
before-push: check
git diff origin/master | $(PEP8) --diff
Something went wrong with that request. Please try again.