1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- PYTHON = python3
- PYFLAKES = $(PYTHON) -m pyflakes
- PEP8 = pep8
- FLAKE8 ?= $(PYTHON) -m flake8
- SETUP = $(PYTHON) setup.py
- TESTRUNNER ?= unittest
- RUNTEST = PYTHONHASHSEED=random PYTHONPATH=$(shell pwd)$(if $(PYTHONPATH),:$(PYTHONPATH),) $(PYTHON) -m $(TESTRUNNER) $(TEST_OPTIONS)
- COVERAGE = python3-coverage
- DESTDIR=/
- all: build
- doc:: sphinx
- sphinx::
- $(MAKE) -C docs html
- 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-contrib:: clean
- $(RUNTEST) -v dulwich.contrib.test_suite
- check-all: check check-pypy check-noextensions
- typing:
- mypy dulwich
- clean::
- $(SETUP) clean --all
- rm -f dulwich/*.so
- flakes:
- $(PYFLAKES) dulwich
- pep8:
- $(PEP8) dulwich
- style:
- $(FLAKE8)
- before-push: check
- git diff origin/master | $(PEP8) --diff
- coverage:
- $(COVERAGE) run -m unittest dulwich.tests.test_suite dulwich.contrib.test_suite
- coverage-html: coverage
- $(COVERAGE) html
- .PHONY: apidocs
- apidocs:
- pydoctor --intersphinx http://urllib3.readthedocs.org/en/latest/objects.inv --intersphinx http://docs.python.org/3/objects.inv --docformat=google dulwich --project-url=https://www.dulwich.io/ --project-name=dulwich
|