testtools: Import latest upstream.
[samba.git] / lib / testtools / Makefile
1 # See README for copyright and licensing details.
2
3 PYTHON=python
4 SOURCES=$(shell find testtools -name "*.py")
5
6 check:
7         PYTHONPATH=$(PWD) $(PYTHON) -m testtools.run testtools.tests.test_suite
8
9 TAGS: ${SOURCES}
10         ctags -e -R testtools/
11
12 tags: ${SOURCES}
13         ctags -R testtools/
14
15 clean:
16         rm -f TAGS tags
17         find testtools -name "*.pyc" -exec rm '{}' \;
18
19 release:
20         # An existing MANIFEST breaks distutils sometimes. Avoid that.
21         -rm MANIFEST
22         ./setup.py sdist upload --sign
23
24 apidocs:
25         pydoctor --make-html --add-package testtools \
26                 --docformat=restructuredtext --project-name=testtools \
27                 --project-url=https://launchpad.net/testtools
28
29
30 .PHONY: check clean release apidocs