samba-tool: Add samba-tool processes subcommand
[Samba/bb.git] / lib / testtools / Makefile
blobb3e40ecddfb73b77d67edd76ad1fd2be7fe1c3a6
1 # See README for copyright and licensing details.
3 PYTHON=python
4 SOURCES=$(shell find testtools -name "*.py")
6 check:
7 PYTHONPATH=$(PWD) $(PYTHON) -m testtools.run testtools.tests.test_suite
9 TAGS: ${SOURCES}
10 ctags -e -R testtools/
12 tags: ${SOURCES}
13 ctags -R testtools/
15 clean: clean-sphinx
16 rm -f TAGS tags
17 find testtools -name "*.pyc" -exec rm '{}' \;
19 prerelease:
20 # An existing MANIFEST breaks distutils sometimes. Avoid that.
21 -rm MANIFEST
23 release:
24 ./setup.py sdist upload --sign
25 $(PYTHON) scripts/_lp_release.py
27 snapshot: prerelease
28 ./setup.py sdist
30 ### Documentation ###
32 apidocs:
33 # pydoctor emits deprecation warnings under Ubuntu 10.10 LTS
34 PYTHONWARNINGS='ignore::DeprecationWarning' \
35 pydoctor --make-html --add-package testtools \
36 --docformat=restructuredtext --project-name=testtools \
37 --project-url=https://launchpad.net/testtools
39 doc/news.rst:
40 ln -s ../NEWS doc/news.rst
42 docs: doc/news.rst docs-sphinx
43 rm doc/news.rst
45 docs-sphinx: html-sphinx
47 # Clean out generated documentation
48 clean-sphinx:
49 cd doc && make clean
51 # Build the html docs using Sphinx.
52 html-sphinx:
53 cd doc && make html
55 .PHONY: apidocs docs-sphinx clean-sphinx html-sphinx docs
56 .PHONY: check clean prerelease release