~benji/testtools/modernize-tsfr

1 by Jonathan Lange
Initial version of pyunit3k.
1
# See README for copyright and licensing details.
2
182.2.29 by Jonathan Lange
Oh man I hope this works.
3
PYTHON=python
44.1.4 by Robert Collins
Make running tests with testtools doable from the commandline without python glue.
4
SOURCES=$(shell find testtools -name "*.py")
5
1 by Jonathan Lange
Initial version of pyunit3k.
6
check:
44.1.4 by Robert Collins
Make running tests with testtools doable from the commandline without python glue.
7
	PYTHONPATH=$(PWD) $(PYTHON) -m testtools.run testtools.tests.test_suite
1 by Jonathan Lange
Initial version of pyunit3k.
8
44.1.4 by Robert Collins
Make running tests with testtools doable from the commandline without python glue.
9
TAGS: ${SOURCES}
10.1.1 by Jonathan Lange
Rename pyunit3k to testtools.
10
	ctags -e -R testtools/
1 by Jonathan Lange
Initial version of pyunit3k.
11
44.1.4 by Robert Collins
Make running tests with testtools doable from the commandline without python glue.
12
tags: ${SOURCES}
10.1.1 by Jonathan Lange
Rename pyunit3k to testtools.
13
	ctags -R testtools/
1 by Jonathan Lange
Initial version of pyunit3k.
14
138.4.10 by Jonathan Lange
Top-level documentation.
15
clean: clean-sphinx
44.1.4 by Robert Collins
Make running tests with testtools doable from the commandline without python glue.
16
	rm -f TAGS tags
17
	find testtools -name "*.pyc" -exec rm '{}' \;
1 by Jonathan Lange
Initial version of pyunit3k.
18
128.1.1 by Robert Collins
Add MatchesException matcher.
19
prerelease:
80 by Robert Collins
Out of date MANIFESTS make for bad tarballs.
20
	# An existing MANIFEST breaks distutils sometimes. Avoid that.
21
	-rm MANIFEST
128.1.1 by Robert Collins
Add MatchesException matcher.
22
23
release:
26.1.11 by Robert Collins
Releasing improvements.
24
	./setup.py sdist upload --sign
214.2.2 by Jonathan Lange
Move _lp_release into 'scripts'
25
	$(PYTHON) scripts/_lp_release.py
1 by Jonathan Lange
Initial version of pyunit3k.
26
128.1.1 by Robert Collins
Add MatchesException matcher.
27
snapshot: prerelease
28
	./setup.py sdist
29
138.4.10 by Jonathan Lange
Top-level documentation.
30
### Documentation ###
31
56.1.1 by Jonathan Lange
Add a 'make apidocs' target, and fix the docstrings with errors.
32
apidocs:
168.1.1 by Jonathan Lange
Don't emit warnings on lucid
33
	# pydoctor emits deprecation warnings under Ubuntu 10.10 LTS
34
	PYTHONWARNINGS='ignore::DeprecationWarning' \
35
		pydoctor --make-html --add-package testtools \
56.1.1 by Jonathan Lange
Add a 'make apidocs' target, and fix the docstrings with errors.
36
		--docformat=restructuredtext --project-name=testtools \
37
		--project-url=https://launchpad.net/testtools
38
222.1.1 by Jonathan Lange
Generate news symlink when making docs
39
doc/news.rst:
40
	ln -s ../NEWS doc/news.rst
41
42
docs: doc/news.rst docs-sphinx
43
	rm doc/news.rst
138.4.10 by Jonathan Lange
Top-level documentation.
44
45
docs-sphinx: html-sphinx
46
47
# Clean out generated documentation
48
clean-sphinx:
49
	cd doc && make clean
50
51
# Build the html docs using Sphinx.
52
html-sphinx:
53
	cd doc && make html
54
55
.PHONY: apidocs docs-sphinx clean-sphinx html-sphinx docs
56
.PHONY: check clean prerelease release